I am validating fields in a row in a databound grid at the rowleave event. If a user is creating a new row and then changes his mind part way through, he cannot leave the row without meeting the validation criteria first. I need to be able to check the new row status, at the rowleave event, so that I can see if the ESC key has been pressed to cancel the new row entry. Then I can allow the user to leave without validation. How do I do this?
ADAdministrator Syncfusion Team June 8, 2004 02:30 PM
If you have this property set so the cell is active when it become current,
this.gridDataBoundGrid1.ActivateCurrentCellBehavior = GridCellActivateAction.SetCurrent;
then you can catch an Esc on the AddNewRow by handling this event.