C
Carlos Magalhaes
Hi all,
I am doing some work with a checked list box on a windows form. I bind
a dataset to the checked list box and am setting a display member and
a value member.
I can loop through the values in the checked listbox, and I can read
values etc, I have how ever I cant find a way of setting specific
items in the checked list box to be disabled so that people cant
select those specific items.
Here is the code I have to check specific items. Does anyone know how
to actually disable the items that = # ?
For i As Integer = 0 To ckFileStat.Items.Count - 1
If DirectCast(ckFileStat.Items(i), DataRowView).Item(2) =
"#" Then
ckFileStat.SetItemChecked(i, True)
End If
Next
Thank you very much
Carlos Magalhaes
Active directory or LDAP programming?
http://groups.yahoo.com/group/adsianddirectoryservices
I am doing some work with a checked list box on a windows form. I bind
a dataset to the checked list box and am setting a display member and
a value member.
I can loop through the values in the checked listbox, and I can read
values etc, I have how ever I cant find a way of setting specific
items in the checked list box to be disabled so that people cant
select those specific items.
Here is the code I have to check specific items. Does anyone know how
to actually disable the items that = # ?
For i As Integer = 0 To ckFileStat.Items.Count - 1
If DirectCast(ckFileStat.Items(i), DataRowView).Item(2) =
"#" Then
ckFileStat.SetItemChecked(i, True)
End If
Next
Thank you very much
Carlos Magalhaes
Active directory or LDAP programming?
http://groups.yahoo.com/group/adsianddirectoryservices