Groups | Blog | Home
all groups > dotnet windows forms databinding > july 2005 >

dotnet windows forms databinding : Filling treeview from database



Andreas Schubert
7/24/2005 7:06:42 PM
Hello newsgroup,

If this should be the wrong group for my questions, I apologize.
I am a newbie to .NET and try to achive the following:
A Treeview should be filled with nodes from a database. The table has this
structure:

Node_id NodeText ParentNode

The number of nodes and levels is not limited.
Can someone give me an example on how to fill the treeview with this data?

Thanks for your help

Andreas

Ken Tucker [MVP]
7/25/2005 3:20:54 AM
Hi,

http://support.microsoft.com/default.aspx?scid=kb;en-us;308063

Ken
------------------
"Andreas Schubert" <anwendungsprogrammierer.RemoveSpam@web.de> wrote in
message news:uMwPyHHkFHA.3356@TK2MSFTNGP10.phx.gbl...
Hello newsgroup,

If this should be the wrong group for my questions, I apologize.
I am a newbie to .NET and try to achive the following:
A Treeview should be filled with nodes from a database. The table has this
structure:

Node_id NodeText ParentNode

The number of nodes and levels is not limited.
Can someone give me an example on how to fill the treeview with this data?

Thanks for your help

Andreas


Hcan
7/25/2005 5:48:11 PM
Take a look at this component. It accepts any class that implements an
iList, i.e. a DataView, ArrayList or costum collection. You should be able
to use it "right out of the box"!

http://www.codeproject.com/cs/miscctrl/bindablehierarchicaltree.asp?msg=1169975&mode=all&userid=1430102#xx1169975xx

-H


"Andreas Schubert" <anwendungsprogrammierer.RemoveSpam@web.de> skrev i
meddelandet news:uMwPyHHkFHA.3356@TK2MSFTNGP10.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button