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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

AcceptChange problem in Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

54825 Jan 18,2007 09:40 AM UTC Jan 18,2007 03:26 PM UTC WinForms 1
loading
Tags: GridControl
Babu
Asked On January 18, 2007 09:40 AM UTC

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.

Administrator [Syncfusion]
Replied On 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

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.

Warning Icon 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.Close Icon

;