Home > Net > How to make Datagridview gains focus is not automatically selected when the first line
How to make Datagridview gains focus is not automatically selected when the first line
Time:10-01
I want to encapsulate a control inheriting datagridview, but datagridview when the TAB key to get focus will automatically set the focus to the first row of data, I want to block the action, the TAB key to enter the custom controls later not set the focus to the first line, should how to do? thank you
CodePudding user response:
GotFocus event set in the first line of the Selected to false,