In a DGV I have a field which is a checkbox. As an example let's say that there are 10 rows in the DGV. If I click on the checkbox in row, say 3, in order to set it to True, I would like to set all other checkboxes to False, ie checkboxes in rows 1,2 and 4 to 10, using an Update statement which changes the SQL Server.
When I click on the checkbox in row 3 it changes to True and the specific cell and row 3 become dirty and the Update does not seem to work. If I move to different row prior to Updating then there is no problem.
Is there a way to commit the cell contents and change the row status to not dirty without having to click to a different row. I tried dgv.endEdit with no success.
John
When I click on the checkbox in row 3 it changes to True and the specific cell and row 3 become dirty and the Update does not seem to work. If I move to different row prior to Updating then there is no problem.
Is there a way to commit the cell contents and change the row status to not dirty without having to click to a different row. I tried dgv.endEdit with no success.
John