Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
Is there a way to not show a checkbox if a node has children?
posted

Hi

I have a treeview bound to one SQL data table. I want run time uses to be able to use checkboxes on nodes at the end of each tree branch. In other words I only want runtime users to only be able to select checkboxes on nodes without children.

I am currently using the Override1.NodeStyle = Infragistics.Win.UltraWinTree.NodeStyle.CheckBox property to show the checkboxes on the treeview.

The best way to do this would be to only show a checkbox on nodes without children. Is this possible? and can someone tell me how the code should look.

 Thanks

 Matthew