Question Datagridview column status

tqmd1

Well-known member
Joined
Dec 5, 2009
Messages
60
Programming Experience
Beginner
What is the best datagridview event to use these codes

I want to check column 0 is empty or has some value

VB.NET:
If e.ColumnIndex = 0 Then
            If DataGridView1.CurrentCell.Value = "" Then
                MsgBox("Empty Value")
            Else
                MsgBox("Not empty column")
            End If
        End If

Please help
 

Latest posts

Back
Top