VB2008
I have a DataGridView with MultiSelect = True and
SelectionMode=F ullRowSelect. One of the columns is a checkbox column. I have
a function that goes through all the selected rows and sets the value of
this column.
For Each row In DataGridView1.S electedRows
row.Cells("MyCh eckboxColumn"). Value = False
Next
This seems to almost work, but I noticed that sometimes it does not update
the first or the last selected row. On investigation, it seems that the
value is updated, but if the row happens to be the currentrow, the change is
not displayed until the currentrow is changed. I have managed to get around
this problem by setting CurrentCell = Nothing after I have made the changes,
but this has the undesirable side effect of clearing the selection.
Any suggestions?
TIA
Phil.