locked
Custom Editing Control in DataGridView RRS feed

  • Question

  • 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.

    Friday, September 16, 2011 12:33 PM

Answers

All replies