How can I trap Commit/Cancel of a cell/row in datagridview?
I have a datagridview with a column order which contains numeric order value 1,2,3,4,5 etc. It actually displays the position of the row. I am using DefaultValuesNeeded to automatically populate the new row with the new order value. So if the last value
was 5 next would be 6. The gridview is bound to a dataview. There are two radio buttons (off course out side the grid view), which are used to filter the data in gridview (applying rowfilter on dataview). When the second radio button is clicked the rows
that are displayed have higher order values than the rows that are displayed when the first radio button is clicked, meaning continuation of order values.
Now situation is there are total 11 rows in the dataview and grid view. When first radio button is selected 6 rows are displayed. Therefore the order value for sixth row is 6. When the second radio button is selected 5 rows are displayed and and order value
for the starting row in this case is 7 and for the last row is 11. Now I realize that I have to enter one more row for first radio button. So I select first radio button and the six rows are displayed. I go to 7th row and it prepopulates the order value with
7. Here I have two options:
1. To commit the changes by pressing Enter.
2. Cancel changes by
View Complete Post