Vidar
Vidar

Reputation: 6673

Selective showing of checkboxes in treeview (Windows Forms)

(This is not WPF)

Is there a way to hide checkboxes on a parent node in a treeview (this is in fact a directory) - I am guessing it's an all or nothing thing though - either you have checkboxes for everything or nothing. I say this as the treeview control has a property CheckBoxes = true/false - "indicates whether check boxes are displayed by nodes".

Just thought I would check though.

BTW - has anyone used this treeview control - is it reliable, any good? TreeVeiwAdv

Upvotes: 1

Views: 937

Answers (1)

Edwin de Koning
Edwin de Koning

Reputation: 14387

There is indeed no support for such functionality. There is workaround however, by using p/invoke on the win32 API and send a TVM_SETITEM message.

See here for an example by Jeffrey Tan.

Upvotes: 4

Related Questions