Private Sub dgvPhysCME_CellValidating(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles dgvPhysCME.CellValueChanged 'Bypass CellValidation when building/showing DataGridView If e.RowIndex = -1 Then Exit Sub 'Clear ErrorText before testing cell value dgvPhysCME.Rows(e.RowIndex).ErrorText = "" 'If cell is not null, exit sub If Not IsDBNull(dgvPhysCME.Rows(e.RowIndex).Cells(e.ColumnIndex).Value) Then Exit Sub dgvPhysCME.Rows(e.RowIndex).ErrorText = "Field must not be empty" '*** This is where I'm getting the Build Error *** e.cancel = True End Sub
private void dgvPhysCME_CellValidating(object sender, DataGridViewCellValidatingEventArgs e) Handles dgvPhysCME.CellValidating
DataGridViewCellValidatingEventArgs
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)