Please suggest on what event and how can i do such validation.
private void data Grid View1_Cell Validating(object sender, Data Grid View Cell Validating Event Args e) void data Grid View1_Cell End Edit(object sender, Data Grid View Cell Event Args e) And Voila!
I have been struggling with two Data Grid View issues.
The Cell Validating event handler is where you determine whether the value of a cell in the School Name column is empty. Data Grid View Cell Validating Event Args class to true.
If the cell value fails validation, set the Cancel property of the System. This causes the Data Grid View control to prevent the cursor from leaving the cell.
Thanks John Private Sub Button1_Click(By Val sender As System.