08-06-17, 10:11 PM
(آخر تعديل لهذه المشاركة : 08-06-17, 10:14 PM {2} بواسطة boudyonline.)
جرب الكود التالي :
كود :
Private Sub myDataGridView_CellValidating(ByVal sender As Object,
ByVal e As DataGridViewCellValidatingEventArgs)
Handles myDataGridView.CellValidating
If myDataGridView.Item(e.ColumnIndex, e.RowIndex).Value Is Nothing Then
' Show the user a message
MessageBox.Show("You have left the cell empty")
' Fail validation (prevent them from leaving the cell)
e.Cancel = True
End If
End SubDon't Be The Perfect one
be the right one

