nvendi

Hi,

I have a requirement where the treeview needs to get populated in a readonly mode.

I tried using treeview.Enabled = false but it also freezes the scrollbar.

The user should be able to navigate through the treeview using scrollbar but it should not allow node selection.

How can I do this

Please help....

Thanks in advance,

Narendra.



Re: Windows Forms General Disable TreeView node selection?

Alan Robbins

Hi Narendra

The easiest way is in the AfterSelect event of the treeview, unselect the node if in read only mode. This causes a tiny little flicker but gets it done.

HTH






Re: Windows Forms General Disable TreeView node selection?

nvendi

Hi,

Can i know how to unselect the treeview node

Thanks

V.Narendra