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

Grid Editing

Thread ID:





26900 Apr 4,2005 05:00 AM UTC Apr 4,2005 08:14 AM UTC WinForms 1
Tags: GridControl
Asked On April 4, 2005 05:00 AM UTC

Hi there, Is there any flag for a grid stating that the grid is currently on edit mode ? and Is it possible to catch the event triggered when user pressed esc twice, which is to cancel current edit mode ? Thank you for your time, cheers, adit

Administrator [Syncfusion]
Replied On April 4, 2005 08:14 AM UTC

I assume you are using a GridDataBoundGrid because of your esc twice question, correct? You can use grid.CurrentCell.IsEditing to test if there is an actively editing current cell for either a GridControl or a GridDataBoundGrid. You can use gridDataBoundGrid1.Binder.IsEditing to test if a row in a GridDataBoundGrid has an edited cell and the row has not been saved to the DataSource. You can catch the escape key using the CurrentCellKeyDown event. This will catch both keys, but if you want to actually avoid the escape, this event will only notify you of the action and not let you avoid it. If you want to avoid this escape behavior grid-wide, you can set the this.gridDataBoundGrid1.WantEscapeKey = false.


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