Private Sub dgvfamily_CellLeave(sender As Object, e As DataGridViewCellEventArgs)
For i As Integer = 0 To dgvfamily.Rows.Count - 1
For j As Integer = 1 To dgvfamily.Columns.Count - 1
If dgvfamily.Rows(i).Cells(j).Value Is Nothing Then
dgvfamily.Rows(i).Cells(j).Style.BackColor = Color.RoyalBlue
dgvfamily.CurrentCell = dgvfamily.Rows(i).Cells(j)
Return
End If
Next
Next
I ma using this when datagrid cell leave blank on that time it will change the color of blank cell
Thanks
Kishan