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

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

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!

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon