CheckBox in DataGridView Control
-
Hi friends, I am using checkbox control with in datagridview control.I want to get status of checkBox control which is placed inside the datagridView control. How do I get Status(checked,unchecked) of checkBox control in datagridView ?
Thank& Regards Vijay s
-
Hi friends, I am using checkbox control with in datagridview control.I want to get status of checkBox control which is placed inside the datagridView control. How do I get Status(checked,unchecked) of checkBox control in datagridView ?
Thank& Regards Vijay s
Hi Vijay, Please know that the detault checkBoxes in DataGridView does not have any property to check whether the checkbox is in Checked/Unchecked state. However, on the basis Value property we can check the state in the following manner: BEGIN CODE Dim flag As Boolean = False flag = Me.DataGridView1.Rows(3).Cells(9).Value If flag = True Then MsgBox("State is Checked") Else MsgBox("State is UnChecked") End If END CODE Hope this helps:).
Regards, John Adams ComponentOne LLC