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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

updating the datasource

Thread ID:





51566 Nov 8,2006 03:44 PM UTC Nov 10,2006 04:48 AM UTC WinForms 3
Tags: GridControl
Asked On November 8, 2006 03:44 PM UTC

I'm using the GridDataBoundGrid and would like to figure out how one is one able to force an update to the datasource after editing a cell. The ListChangedEvent is fired after editing a cell then moving to a cell of any other row, but I would like it to fire after moving to any other cell including those in the same row. I'm assuming that there may be a cell event to subscribe to, but not sure which is the best to use. Also, are there any other alternatives to cell events?

Thanks for any help.


Administrator [Syncfusion]
Replied On November 9, 2006 08:59 AM UTC

Hi Nathan,

To push all data to underlying datasource for every cell movement, you need to call in Binder.EndEdit Method(before calling this , you need to call the CurrentCell''s Edit method). Here is a code snippet.

this.grid.CurrentCell.EndEdit(); //saves the currentcell
this.grid.Binder.EndEdit(); //removes the pencil

Best Regards,

Replied On November 9, 2006 05:19 PM UTC

...And just so I'm clear, this can be done by subscribing to the CurrentCellEditingComplete event? Or, is there another event to subscribe to?

Thanks for the help!


Administrator [Syncfusion]
Replied On November 10, 2006 04:48 AM UTC

Hi Nathan,

You can use the CurrentCellMoving event handler to update all data to underlying datasource for every cell movement

Best Regards,


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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