Cannon
Cannon

Reputation: 2783

XtraTreeList DevExpress

I am using treelist.OptionsView.ShowCheckBoxes = true; but that shows checkbox on all nodes. I want only child nodes to show CheckBox and not parent node. Any way to implement it ?

Upvotes: 1

Views: 3293

Answers (2)

DevExpress Team
DevExpress Team

Reputation: 11376

This can be done by using the CustomDrawNodeCheckBox event. The Hiding parent node checkboxes in new treelist checkbox feature shows how this can be implemented.

Upvotes: 1

Jean-Philippe Leclerc
Jean-Philippe Leclerc

Reputation: 6805

I don't think it is possible. But you can use the CustomDrawCaption event to hide the checkbox on the node you don't want to show it.

Upvotes: 0

Related Questions