DataGridView セル 空白 検出

DataGridViewの指定セルが空白であるかを見つけるためのコード
「Validated」イベントを使用する。

    Private Sub DataGridView1_Validated(sender As Object, e As EventArgs) Handles DataGridView1.Validated
        If DataGridView1(0, 0).Value Is Nothing Then
            MsgBox("セルが空です")
        Else
            MsgBox("セルに入力文字があります")
        End If
    End Sub

上記例では、セル(0,0)が空白かどうかを見ている。
ポイントは、「Validated」イベントを使用している点と
                「・・・ Is Nothing」で判定している点です。