08-08-20, 11:39 PM
هلا اخي بلدي اتفضل كود للتواريخ
وانا اريد لقيمه نصية معينة او كلمة معينة
Dim kk As Date = Now.ToString("yyyy/MM/dd")
For i As Integer = 0 To DataGridView1.Rows.Count - 1
If DataGridView1.Rows(i).Cells(7).Value < kk.AddDays(-90) Then
DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.Red
End If
Next
وانا اريد لقيمه نصية معينة او كلمة معينة
Dim kk As Date = Now.ToString("yyyy/MM/dd")
For i As Integer = 0 To DataGridView1.Rows.Count - 1
If DataGridView1.Rows(i).Cells(7).Value < kk.AddDays(-90) Then
DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.Red
End If
Next


