15-04-19, 08:32 PM
السلام عليكم...
هذا هو الكود للإفادة.
هذا هو الكود للإفادة.
كود :
Private Sub DataGridView1_CellFormatting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles DataGridView1.CellFormatting
If Me.DataGridView1.Rows(e.RowIndex).Cells("العمر").Value > 18 Then
Me.DataGridView1.Rows(e.RowIndex).Cells("العمر").Style.BackColor = Color.Red
End If
End Sub
المبرمج لا يفكر في المشكلة بل في الحل!!