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. Image for the cookie policy date

problem in getting the updated datasource in grid

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

1 Reply

AD Administrator Syncfusion Team March 1, 2007 05:29 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon