You're Browsing As A Guest! Register Now... |
||
|
Become a VB.NET Expert!
Join 415,718 VB.NET Programmers for FREE! Get instant access to thousands
of VB.NET experts, tutorials, code snippets, and more! There are 893 people online right now.Registration is fast and FREE... Join Now!
|
||
Page 1 of 1
Generate string from treeview multiple selection How to Generate string from treeview
#1
Generate string from treeview multiple selection
Posted 14 May 2006 - 11:19 AM
Hi
I have a treeview control which diplays information from database tables. For example consider Employee Manager relation ship in a hierachy.
I've want a little help from you experts. I want to generate / build a string which contains the Id of the selected node in the tree view. When User select a node the Id of the selected node is added to the string. If the user deselects the node the corresponding id needs to be removed from the string.
Thanks in advance
Skumar
I have a treeview control which diplays information from database tables. For example consider Employee Manager relation ship in a hierachy.
I've want a little help from you experts. I want to generate / build a string which contains the Id of the selected node in the tree view. When User select a node the Id of the selected node is added to the string. If the user deselects the node the corresponding id needs to be removed from the string.
Thanks in advance
Skumar
#2
Re: Generate string from treeview multiple selection
Posted 14 May 2006 - 05:35 PM
We're going to need a little bit of information, Currently the treeview built into .NET (as far as I know) does not support selecting of multiple nodes which would make your Application easy... Just set the string to ID=TreeView.SelectedNode.Index. But if you've developed a custom treeview that supports multiselect you're going to have to let us know how you're handling the management of it all.
If i'm wrong about the multiselect support sorry
If i'm wrong about the multiselect support sorry
#3
Re: Generate string from treeview multiple selection
Posted 17 May 2006 - 09:57 PM
Hi,
Can select multiple Nodes in Treeview using checkbox next to the node. When the ShowCheckBoxes property is set to a TreeNodeType other than TreeNodeType.None, check boxes are displayed next to the specified nodes.
Ref: http://msdn2.microso...259(VS.80).aspx
Can select multiple Nodes in Treeview using checkbox next to the node. When the ShowCheckBoxes property is set to a TreeNodeType other than TreeNodeType.None, check boxes are displayed next to the specified nodes.
Ref: http://msdn2.microso...259(VS.80).aspx
Page 1 of 1


Reply




MultiQuote







|