EagleTempest
Technical User
VB .Net 2005 and Framework 2.0
I have the selection property set to:
.SelectionMode = DataGridViewSelectionMode.FullRowSelect
It appears that for the property:
datagridview..SelectedRows(0).Index to return the selected row, the user must actual click on the text in one of the cells of the row.
Selected a row by clicking on the white space in a cell changed the selected row visually on screen, but the Index property doesn't change (as tested by displaying the index in a textbox).
Any ideas to fix this that clicking anywhere on a row triggers the Index property?
I have the selection property set to:
.SelectionMode = DataGridViewSelectionMode.FullRowSelect
It appears that for the property:
datagridview..SelectedRows(0).Index to return the selected row, the user must actual click on the text in one of the cells of the row.
Selected a row by clicking on the white space in a cell changed the selected row visually on screen, but the Index property doesn't change (as tested by displaying the index in a textbox).
Any ideas to fix this that clicking anywhere on a row triggers the Index property?