Hovering the mouse pointer on the icon displays the Error Text that you set earlier.
The Data Grid View control of Windows Forms is a versatile control that can help you create professional-looking data entry forms.
This, therefore, undoes any action you perform in the handler.
What you have to do instead is change the value in the editing control (remembering not to cancel the event).
In general, it is better to use the Cell Parsing event whenever you need to convert/change the value in a cell.
How can I disable the cell validating event for the rows that was added before???
thankxxxxxx There are two ways to manage unwanted execution of event handlers.
This property returns the new value entered in the cell.
If it is less than five characters, you set the Error Text property of that cell to some error message.