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.

updating the datasource

Thread ID:

Created:

Updated:

Platform:

Replies:

51566 Nov 8,2006 10:44 AM Nov 9,2006 11:48 PM Windows Forms 3
loading
Tags: GridControl
nathan
Asked On November 8, 2006 10:44 AM

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.

Nathan

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

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,
Haneef

nathan
Replied On November 9, 2006 12:19 PM

...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!

Nathan

Administrator [Syncfusion]
Replied On November 9, 2006 11:48 PM

Hi Nathan,

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

Best Regards,
Haneef

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.

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.

;