Hello all:
C#.Net 2.0 Windows Forms project. I have a DataGridView bound to a BindingSource which pulls from a DataTable in a dataset.
In the CellValidating event of the DataGridView I call:
((BindingSource)((DataGridView)sender).DataSource).EndEdit();
this.pushUpdates();
The this.pushUpdates() procedure tests the DataSet for changes and runs updates as needed.
Let’s say we have cells A, B, C and D in the grid. If I tab from A to B and then add a value, when I tab out of B and into C debugging shows that the CellValidating event fires for cell B and the procedures are called. But the DataSet shows no changes.
When I tab from C to D THEN the DataSet shows changes and pushed them. Why is this? Anyone know?
Thanks
Kurt