S
Stephen Hatfield
I have a Windows Forms application consisting of several main level
TabControls and each of these controls has two or more TabControls within
them.
I have a method which calls all the LoadDataGridViews methods which I call
in the form's constructor. The last line in each method is
datagridview.ClearSelection().
These methods also get called in a TabControl_Selected event handler.
The first time I go into a given tab, all DataGridViews have the first row
selected. If I click out and click back into a given tab, the first rows are
now unselected.
I have also tried ClearSelection for each grid individually within a
Form_Load event with the method for loading all the grids within it as well.
Debugging shows the method is called either way yet the first row is always
selected the first time the grid is displayed.
Any suggestions would be most appreciated!
Thanks!
Stephen
TabControls and each of these controls has two or more TabControls within
them.
I have a method which calls all the LoadDataGridViews methods which I call
in the form's constructor. The last line in each method is
datagridview.ClearSelection().
These methods also get called in a TabControl_Selected event handler.
The first time I go into a given tab, all DataGridViews have the first row
selected. If I click out and click back into a given tab, the first rows are
now unselected.
I have also tried ClearSelection for each grid individually within a
Form_Load event with the method for loading all the grids within it as well.
Debugging shows the method is called either way yet the first row is always
selected the first time the grid is displayed.
Any suggestions would be most appreciated!
Thanks!
Stephen