H
hzgt9b
Using VS2005, VB.NET,
I have a windows app with a DataGridView (lets call it DGV). At some
point in the life of my app I want to clear the selection of the
currently selected row (Multiselect=false) from DGV - to do that I
tried this:
DGV.ClearSelection()
Cosmetically this appears to work but it appears that the DGV still
stores the index value of the selected row. If the 1st row I click on
after executing ClearSelection() is the row that was previously
selected then the RowEnter event is NOT triggered - clicking on any
other row than the previously selected row DOES trigger the RowEnter
event.
Is this a bug and/or is there some (other) way for me to clear the
selection of current row from a DGV?
Any help would be appreciated...
I have a windows app with a DataGridView (lets call it DGV). At some
point in the life of my app I want to clear the selection of the
currently selected row (Multiselect=false) from DGV - to do that I
tried this:
DGV.ClearSelection()
Cosmetically this appears to work but it appears that the DGV still
stores the index value of the selected row. If the 1st row I click on
after executing ClearSelection() is the row that was previously
selected then the RowEnter event is NOT triggered - clicking on any
other row than the previously selected row DOES trigger the RowEnter
event.
Is this a bug and/or is there some (other) way for me to clear the
selection of current row from a DGV?
Any help would be appreciated...