I'm creating a custom Editing Control for a DataGridView which is based on TextBox. This works fine, except for the fact that (although I can override the OnValidating event) setting e.Cancel to true won't prevent the user from leaving the cell.
How can I force to stay in the editing control when user enters invalid data?
This must be possible, because when you enter invalid data in a bound column you have to implement Dataerror event and user is not able to leave cell while data is invalid.