Hello all !
I have a CheckedLiskBox control on my form. I would like to "run" on this control and enter each item of it into a dataset table.
I 'run' on it this way:
Dim o As Object
For Each o In frmExam.clbSystemsHead.Items
With dsSystemsReviewDetails.Tables("SystemsReviewDetails")
Dim drSystemsReviewDetails As DataRow = .NewRow
drSystemsReviewDetails("Id") = frmExam.txtID.Text
drSystemsReviewDetails("boolean") = ???
.Rows.Add(drSystemsReviewDetails)
End With
Next
What I don't know is how do I know if the current item in the loop is selected or not. I mean, if the item is checked in the CheckedListBox, I wan't it to be checked in the dataset...
Does anyone can help me with the syntax to make it??
Thanks!
Tom.
I have a CheckedLiskBox control on my form. I would like to "run" on this control and enter each item of it into a dataset table.
I 'run' on it this way:
Dim o As Object
For Each o In frmExam.clbSystemsHead.Items
With dsSystemsReviewDetails.Tables("SystemsReviewDetails")
Dim drSystemsReviewDetails As DataRow = .NewRow
drSystemsReviewDetails("Id") = frmExam.txtID.Text
drSystemsReviewDetails("boolean") = ???
.Rows.Add(drSystemsReviewDetails)
End With
Next
What I don't know is how do I know if the current item in the loop is selected or not. I mean, if the item is checked in the CheckedListBox, I wan't it to be checked in the dataset...
Does anyone can help me with the syntax to make it??
Thanks!
Tom.