Verify ItemEditors input in a datagrid.
Working a lot with ItemEditors in DataGrids.
One of the issues I’ve been dealing with is adding validation to the item editor text entry. I’ve been attaching my validations to the item editor objects themselves however the Datagrid object throws out ItemEditEnd events. You have to check the event’s DataGridReason to see whether it is a cancel or not and then you have the opportunity to validate the data. If the data is bad then do a event.PreventDefault to interrupt the data acceptance and set the target’s errorString to the error message.
More details can be found here.