How can I change what happens when “enter” key is pressed on a DataGridView?

后端 未结 1 666
孤城傲影
孤城傲影 2021-01-24 06:05

when I am editing a cell and press enter the next row is automatically selected, I want to stay with the current row... I want to happen nothing except the EndEdit.

I ha

相关标签:
1条回答
  • 2021-01-24 06:31

    I think you'll need to override ProcessEnterKey to not advance focus to the next row.

    Maybe this thread will help.

    0 讨论(0)
提交回复
热议问题