Reflecting changed cell values in the DataSource of GridDataBoundGrid

Hi All,

I using a GDBG. I have a quick question, if I change some cell values (change existing value / add new rows), is this change reflected automatically in the bound Datasource?
If not, how do I handle this situation?
A code snippet would be helpful.
Thanks in advance.

Suhas


1 Reply

AD Administrator Syncfusion Team August 4, 2006 06:15 AM UTC

Hi Suhas,

Please try calling grid.CurrentCell.EndEdit() followed by grid.Binder.EndEdit() before saving the changes to the underlying datasource.


this.gridDataBoundGrid1.CurrentCell.EndEdit();
this.gridDataBoundGrid1.Binder.EndEdit();


Calling CurrentCell.EndEdit ends ths editing of the current cell and saves for that cell into a local row cache of row changes. Binder.EndEdit ends the editing of the row object and moves the locally cached values into the DataSource.

Regards,
Rajagopal

Loader.
Up arrow icon