Re: populate treeview from databas
From: Mike (Mike_at_discussions.microsoft.com)
Date: 12/01/04
- Next message: Dmitriy Lapshin [C# / .NET MVP]: "Re: How to control download file from IIS?"
- Previous message: slylos: "Re: System.Double.Parse not accurate?"
- In reply to: Nicholas Paldino [.NET/C# MVP]: "Re: populate treeview from databas"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 1 Dec 2004 06:53:02 -0800
so i can't create the top layer nodes of the tree via code from the XML file
Like i can in VB.NET i have to code the headers manually?
I'm currently looking at some VB.NET code that does this already via code
nothing is hardcoded in the treeview, the entire thing is populated from a
XML dataset. I'm going to try to convert it to C# and see if it works.
"Nicholas Paldino [.NET/C# MVP]" wrote:
> Mike,
>
> Yes, but you have to do it manually. You have to cycle through your
> XML, creating TreeViewNode instances and attaching them to the tree.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mvp@spam.guard.caspershouse.com
>
> "Mike" <Mike@discussions.microsoft.com> wrote in message
> news:A702B3EC-3CAE-428E-8B02-6BB9D318F9A3@microsoft.com...
> > I'm getting the data from a web service via a dataset in XML format, can i
> > populate it from the XML dataset?
> >
> > "Nicholas Paldino [.NET/C# MVP]" wrote:
> >
> >> Mike,
> >>
> >> It all depends on the layout of your tables and the nature of the
> >> relations.
> >>
> >> However, regardless of what that layout is, there is no mechanism for
> >> populating a tree view from a data set, or list. You will have to create
> >> the tree view nodes yourself, creating the hierarchies.
> >>
> >> Hope this helps.
> >>
> >>
> >> --
> >> - Nicholas Paldino [.NET/C# MVP]
> >> - mvp@spam.guard.caspershouse.com
> >>
> >> "Mike" <Mike@discussions.microsoft.com> wrote in message
> >> news:62499AEA-7C3F-435E-BF7E-EDDBA8F4D855@microsoft.com...
> >> > how can i populate a treeview from a database?
> >> > websites with examples would help.
> >>
> >>
> >>
>
>
>
- Next message: Dmitriy Lapshin [C# / .NET MVP]: "Re: How to control download file from IIS?"
- Previous message: slylos: "Re: System.Double.Parse not accurate?"
- In reply to: Nicholas Paldino [.NET/C# MVP]: "Re: populate treeview from databas"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|