14-01-25, 01:53 AM
تغيير الكود كامل
PHP كود :
Private Sub DataGridView1_CellFormatting(ByVal sender As Object, ByVal e As DataGridViewCellFormattingEventArgs) Handles DataGridView1.CellFormatting
If e.ColumnIndex = 3 AndAlso Not IsDBNull(e.Value) Then
If CDate(e.Value).Date < Date.Today.AddDays(10) Then
DataGridView1.Rows(e.RowIndex).DefaultCellStyle.BackColor = Color.Red
End If
End If
End Sub
