We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Reflecting changed cell values in the DataSource of GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

47415 Aug 4,2006 05:42 AM UTC Aug 4,2006 06:15 AM UTC Windows Forms 1
loading
Tags: GridControl
Suhas
Asked On August 4, 2006 05:42 AM UTC

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


Administrator [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;