08-05-19, 03:06 PM
كيف اسال عن وجود قيمة غير مختارة في عمود checkbox في داتاجريد
واضع النتيجة في متغير من نوع boolen
Dim nehal As Boolean
nehal = True
For i = 0 To DataGridView2.Rows.Count - 1
If Val(DataGridView2.Rows(i).Cells("percentage").Value) = -1 Then
CheckBox11.Checked = True
Else
CheckBox11.Checked = False
End If
'MsgBox((DataGridView2.Rows(i).Cells("percentage").Value))
Next
CheckBox11.Checked = nehal
واضع النتيجة في متغير من نوع boolen
Dim nehal As Boolean
nehal = True
For i = 0 To DataGridView2.Rows.Count - 1
If Val(DataGridView2.Rows(i).Cells("percentage").Value) = -1 Then
CheckBox11.Checked = True
Else
CheckBox11.Checked = False
End If
'MsgBox((DataGridView2.Rows(i).Cells("percentage").Value))
Next
CheckBox11.Checked = nehal