I did decide to answer question, though i'm not sure what you want to achieve...
Probably you want to enable some extra functionality depend on status of top level checkbox, for example:
[ ] Squared Off TO | |
|---------------- | [ ] Delivery Buy TO |
|---------------- | [ ] Delivery Sell TO |
[x] Delivery TO | |
|---------------- | [x] Squared Off Buy TO |
|---------------- | [x] Squared Off Sell TO |
First of all, read some articles on codeproject site. Maybe you'll find an answer.
A ComboBox with a CheckedListBox as a Dropdown[
^]
Custom ComboBoxes with Advanced Drop-down Features[
^]
CCheckComboBox II[
^]
Similar functionality to CheckedComboBox has a CheckedListBox control. Take a look at
this[
^] discussion, where you'll find a sample code that can be used in the ItemCheck event of a CheckedListBox to make items disable.
But i recomend you to use
treeview[
^] control, which is more flexible to you, becouse it has nodes and childnodes, which can be displayed as checkboxes.
I found something EXTRA!
Here[
^] you'll find an article about:
How to hide checkbox of the certain TreeNode in TreeView control.
I hope it will be helpful.