29-02-16, 05:35 PM
السلام عليكم ورحمة الله وبركاتة
اخي ده كود يمكن تنفيذة عقب تعبئة الجريد
غير رقم العمود اللي به الحقل
اخي ده كود يمكن تنفيذة عقب تعبئة الجريد
PHP كود :
For i As Integer = 0 To DataGridView1.Rows.Count - 1
If DataGridView1(2, i).Value = True Then
DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.Aqua
DataGridView1.Rows(i).ReadOnly = True
Else
DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.White
DataGridView1.Rows(i).ReadOnly = False
End If
Next
Email : mrma11581@gmail.com
