Search code examples
c#devexpressxtratreelist

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 ?


Solution

  • 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.