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.

AcceptChange problem in Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

54825 Jan 18,2007 04:40 AM Jan 18,2007 10:26 AM Windows Forms 1
loading
Tags: GridControl
Babu
Asked On January 18, 2007 04:40 AM

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 10:26 AM

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.

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.

;