Re: TreeView properties treeNodeSrc - treeNodeTypeSrc
- From: ippo <brunog916@xxxxxxxx>
- Date: Fri, 19 Oct 2007 00:44:46 -0700
On Oct 18, 9:48 pm, "Robbe Morris - [MVP] C#" <i...@xxxxxxxxxxxxxxx>
wrote:
How exactly do you know you need to set two properties
that don't exist?
That said...
Use the .Tag property of the node to store a custom
class in. Whenever you grab a node, get the custom
class back out of the .Tag
MyCustomClass blah = (MyCustomClass)node.Tag;
--
Robbe Morris [Microsoft MVP - Visual C#]
.NET PropertyGrid Control - ListBox, ComboBox, and Custom Classeshttp://www.eggheadcafe.com/tutorials/aspnet/270e9432-d236-47e7-b1af-5...
"ippo" <ippolito79-...@xxxxxxxx> wrote in message
news:1192728029.376279.70930@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,
I have a silly problem with treeview. I'm using .NET 2.0. I need to
set the two properties treeNodeSrc - treeNodeTypeSrc at run time using
C#, but in the treeViews that I define, these two properties don't
exist!!!
Do I need to import something more to use all the properties of the
treeview? Right now, I 've just installed .NET 2005
Thank you all
Bruno- Hide quoted text -
- Show quoted text -
There are a lot of example, even in MSDN environment, using that two
properties to populate a treview. My problem is just that, in my .NET
installation, I cannot see those properties. It seems they are not
part of treeview objects I define, so I was asking if there was
something to include to use all treeview webcontrols features
Thank you
Bruno
.
- References:
- TreeView properties treeNodeSrc - treeNodeTypeSrc
- From: ippo
- Re: TreeView properties treeNodeSrc - treeNodeTypeSrc
- From: Robbe Morris - [MVP] C#
- TreeView properties treeNodeSrc - treeNodeTypeSrc
- Prev by Date: Grid Class and build a view for it
- Next by Date: Populate a treeview with a xml string
- Previous by thread: Re: TreeView properties treeNodeSrc - treeNodeTypeSrc
- Next by thread: Re: TreeView properties treeNodeSrc - treeNodeTypeSrc
- Index(es):
Relevant Pages
|