so there is never any chance of an invalid entry in the first place. I also do not like that the user must begin to move away from the control before validation occurs. For more information about handling events, see NIB: Consuming Events.Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.There are two ways to manage unwanted execution of event handlers. Data Grid View Cell Validating Event Args' does not contain a constructor that takes '1' arguments" what is the solution for this???????1) Add a conditional statement in the event handler code to only execute when required. Cell Validating -= new Data Grid View Cell Validating Event Args(dgv Sub Contractor_Cell Validating); it says that "Error 7 'System. hey what do ouy mena by the below private void data Grid View1_Cell Validating(object sender, Data Grid View Cell Validating Event Args e) if (adding Row) - is to call the button event for adding a new row is it every time the cell validating event triggers and a value is entered in the datagridview cell right??
How can I disable the cell validating event for the rows that was added before???