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.

How to change the edit state of a row in Grid Control?

Thread ID:

Created:

Updated:

Platform:

Replies:

23752 Jan 18,2005 11:00 PM Jan 19,2005 01:49 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 18, 2005 11:00 PM

When editing a textbox cell in a row in GridControl, the corresponding rowheader shows a pencil icon. When finishing editing the cell by pressing "Enter" key, current cell moves to the next cell. But the pencil still suspends. How to hide it or how to finish editing status? Thanks!

Administrator [Syncfusion]
Replied On January 19, 2005 01:49 AM

By default, a GridControl does not show a pencil when you are editing a cell. A GridDataBoundGrid does though. And it shows the pencil until the cached changes for the row are saved to the DataSource when you leave the row. So, in a GridDataBoundGrid, then pencil means there a pending changes to the row that have not been saved to the DataSource. If you want to immediately save these changes as you leave teh cell (as opposed to saving them when you leave teh row), you can subscribe to the CurrentCellChanged event and do it there. private void gridDataBoundGrid1_CurrentCellMoved(object sender, GridCurrentCellMovedEventArgs e) { if(this.gridDataBoundGrid1.Binder.IsAnyDirtyField()) this.gridDataBoundGrid1.Binder.EndEdit(); } If you want to save the c

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.

;