Hi, I'm using the cellvalidating event on a datagridview. I can’t seem to get my Validate The Entry() function to return a 0 if the entry is either “” or NULL or string. I only need to validate certain columns in the datagrid, I don’t need to validate the EAN or the description for instance and yet the column index don’t seem to be logical?In a lot of books and articles that I've read on this control, it seems to suggest that the appropriate event to handle for this is the Cell Validating one. However, this event triggers a bit too often for my tastes and I'm not sure it is required.
Canceling this event cancels the changes to the current cell.
When this event is canceled in data-bound mode, the new value is not pushed to the underlying data source.
Cancel = True End If End Sub Private Sub data Grid View1_Cell End Edit(By Val sender As Object, _ By Val e As System. Cell End Edit ' Clear the row error in case the user presses ESC. For more information, see Protecting Connection Information.
Data Grid View Cell Event Args) _ Handles data Grid View1. Using Windows Authentication (also known as integrated security) is a more secure way to control access to a database.
For more information about handling events, see NIB: Consuming Events.