By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,846 Members | 1,631 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,846 IT Pros & Developers. It's quick & easy.

Treeview Control: Maintaining Selection Rectangle When Disabled?

P: n/a
Got a TreeView control on the screen.

User clicks a node, screen loads details for that node.

Screen has two modes: Browse and Edit.

If the user clicks "Edit", I set Tree.Enabled=False and make the detail fields
on the screen editable.

Tree.Enabled=False because once the screen is in "Edit" mode for data behind a
certain node, we don't want the user to select some other node.

Problem is that when Tree.Enabled is set to False, the selection rectangle on
the current node disappears - making for some confusion for the user... "Which
thing am I editing?..."

One workaround would be to repeat the currently-selected Node.Text on the screen
over top of the detail section... but that seems a little lame to me.

Conceptually, just locking the Tree instead of setting .Enabled=False would
probably have the desired effect... but there doesn't seem tb a .Locked prop for
the tree.

Anybody been here? Some other property?
--
PeteCresswell
Jul 31 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.