10-12-18, 05:26 AM
اختصارا
كود :
Private Sub DataGridView1_CellFormatting(sender As Object, e As DataGridViewCellFormattingEventArgs) Handles DataGridView1.CellFormatting
If e.Value = "تم التسليم" Or e.Value = "تم الارسال" Or e.Value = "تم التاكيد" Then
e.CellStyle.BackColor = Color.Green
ElseIf e.Value = "قيد التسليم" Or e.Value = "قيد التاكيد" Then
e.CellStyle.BackColor = Color.Red
End If
End Sub
