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