Verifique se a célula é dbnullvb.net
If MyDataGridView.Rows(0).Cells(0).Value IsNot DBNull.Value Then
End If
Salty Joe
If MyDataGridView.Rows(0).Cells(0).Value IsNot DBNull.Value Then
End If