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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





23752 Jan 19,2005 04:00 AM UTC Jan 19,2005 06:49 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On January 19, 2005 04:00 AM UTC

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 06:49 AM UTC

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon