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.

problem in getting the updated datasource in grid

Thread ID:

Created:

Updated:

Platform:

Replies:

57312 Mar 1,2007 05:40 AM Mar 1,2007 12:29 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 1, 2007 05:40 AM

Hi,

Some event is updating the backend datasource which is binded to the grid...But the changes are not getting reflected in the grid cell...
I tried grid.refresh but then also i see the old values only.
Same datasource is attached in second window and there i can see the new value reflected....but the place where i changed the value that cell is not getting the new value...it is keeping the old value only....
Is there any property of which force the cell to get the changed ...
Why after editing the data cell dont take changed values in datasource....?

Please help...this is very urgent and important for me...

Administrator [Syncfusion]
Replied On March 1, 2007 12:29 PM

Hi,

You can 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) in the CurrentCellMoving event. Here is a code snippet.

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

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.

;