i got a Application with a GGC and a button which returns the changed rows of the underlying DataSet. When i edit a cell inside of that grid and directly press the button, the changes are not shown.
When i click onto another cell prior to clicking the button it seems like the changes are then populated to the underlying DataSet and the changed row gets listed.
What i tried is to disable the button as long as a cell is edited. I used TableControlCurrentCellStartEditing and TableControlCurrentCellEditingComplete events. But this is not always working.
I would like to be able to directly click the button out of the edited cell and have the changes populated to the underlying grid so the changed row gets listed.
Is there a way to tell the grid to update or populate the changes programmatically ? I already tried GGC.Update() but with no luck.
Or is there a "better" way to tell if the grid is currently edited or not ?
ADAdministrator Syncfusion Team April 29, 2005 12:44 PM
Is the button you are clicking on a toolbar, or is it a button control where its CausesValidation is set to false? In either of these cases, clicking the button will not trigger a validation of the last active control, and this would prevent the data from being pushed into the datasource. One thing you can try is to call
this.Validate();//this refers to the Form holding the grid
at the start of your button handler code. This should trigger a validation on the last active control.