Cellvalidating datagridview in c net
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.
You may change my Col Quantity Issues and Col Quantity Required to access them by name (i.e. 2) Detach the event hander before the unwanted event triggers and re-attach after. so when i click the add button the cell validating event triggers i have posted the cell validating event do you know how to solve this thanxxx code!!!Something there is causing the cell validating event to fire. [Edit] The validating event is firing because focus is being moved from the DGV to the button.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).
Hovering the mouse pointer on the icon displays the Error Text that you set earlier.