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
close icon

Force a SaveCellInfo in virtual grid

I have a virtual grid that a user can be editing, and be currently editing a value in a particular cell. Then the user selects a menu choice, which goes and reads the underlying datasource to do some action. The datasource does not contain the lastest changes to the cell currently being edited, since SaveCellInfo has not been called. How can I programatically force a SaveCellInfo? (I don''t really want to programatically move the current cell selection to do it) Thanks!

2 Replies

AD Administrator Syncfusion Team September 17, 2004 01:04 PM UTC

You can try grid.CurrentCell.EndUpdate(); grid.Binder.EndUpdate(); The first call end the updating of teh currentcell and the second should flush any cached row changes to the datasource.

AD Administrator Syncfusion Team September 17, 2004 01:05 PM UTC

Oops. I was thinking GridDataBoundGrid. In a GridControl, calling grid.CurrentCell.ConfirmChanges should do the trick.

Live Chat Icon For mobile
Up arrow icon