For Each row As DataGridViewRow In Me.DataGridView1.Rows
If row.Cells(0).Value IsNot DBNull.Value AndAlso Boolean.Parse(row.Cells(0).Value) = True Then
row.DefaultCellStyle.BackColor = System.Drawing.SystemColors.InactiveCaptionText
Else
row.DefaultCellStyle.ForeColor = Color.White
End If
Next
|