29-04-17, 12:56 AM
(29-04-17, 12:23 AM)rmlq كتب :كود :
Private Sub DataGridView1_CellFormatting(sender As Object, e As DataGridViewCellFormattingEventArgs) Handles DVG.CellFormatting
If DVG.Item(7, e.RowIndex).Value <= 1 Then
DVG.Rows(e.RowIndex).DefaultCellStyle.BackColor = Color.Red
Else
DVG.Rows(e.RowIndex).DefaultCellStyle.BackColor = Color.White
End If
End Sub
أشكرك اخي العزيز من اعماق قلبي
