AcceptChange problem in Grid

Hi all,

When I edit a cell in the grid and move to next

column using tab,

grid.AcceptChanges()

works fine.but When i changes the value in the cell and move the focus to other controls outside the grid.Acceptchanges does not works to save the records.

Can anyone suggest me the solution.

Regards

Kumar.

1 Reply

AD Administrator Syncfusion Team January 18, 2007 03:26 PM UTC

Hi Kumar,

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

Regards,
Haneef

Loader.
Up arrow icon