Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Pass More than One Value from Parent to Child? Pin
khmays1233-Mar-07 19:54
khmays1233-Mar-07 19:54 
Questionvisual commonet for angle... Pin
barak1604873-Mar-07 17:20
barak1604873-Mar-07 17:20 
Questionone textbox - bind to 2 fields Pin
Glen Harvy3-Mar-07 15:18
Glen Harvy3-Mar-07 15:18 
Questionfaster way to adjust contrast????? Pin
samreengr83-Mar-07 11:21
samreengr83-Mar-07 11:21 
AnswerRe: faster way to adjust contrast????? Pin
Christian Graus3-Mar-07 23:29
protectorChristian Graus3-Mar-07 23:29 
GeneralRe: faster way to adjust contrast????? Pin
samreengr85-Mar-07 8:19
samreengr85-Mar-07 8:19 
AnswerRe: faster way to adjust contrast????? Pin
Vasudevan Deepak Kumar4-Mar-07 5:06
Vasudevan Deepak Kumar4-Mar-07 5:06 
Questionpopulating a Treeview in c# [modified] Pin
Starzfighter3-Mar-07 10:55
Starzfighter3-Mar-07 10:55 
I've the following Problem. I need to populate a TreeView from a Database.
The Table looks like this:
Typename|rule.id|Rule_Prio|Level|Typename
"Vehicle","Vehicle=Car+Pickup",1,2,"car"
"Vehicle","Vehicle=Car+Pickup",1,2,"Pickup"
"car","car=carWithoutTrailer",2,1,"carWithoutTrailer"
"Truck","Truck=HeavyTruck+LightTruck",1,1,"HeavyTruck"
"Vehicle","Vehicle=Truck",2,2,"Truck"
"Truck","Truck=HeavyTruck+LightTruck",1,1,"LightTruck"
"car","car=carWithTrailer",1,1,"carWithTrailer"
"Pickup","Pickup=PickupWithoutTrailer",1,1,"PickupWithoutTrailer"

The Vehicle is the rootNode. It's no problem to get it from the Database. One of my biggest problems is: no Primary key exists for it. So it's hard for me to find a recursive solution. I think a Picture says more than words.
It should look like this:
Picture of how the Tree should look like
The Rule_Prio is always a node after nodes to group them.
Ive already created a connection to the Database. Created a DataAdapter and filled it with a DataSet which contains the Table.
Every try to build this tree leads to a stackoverflow or leads to different problems.
I read all the TreeView Tutorials in here but there recursive solutions didn't help me much because they often work on a primary key or better an id which is an int and which is autoincremented.
Any ideas?


-- modified at 6:21 Sunday 4th March, 2007
AnswerRe: populating a Treeview in c# Pin
Abisodun3-Mar-07 12:04
Abisodun3-Mar-07 12:04 
GeneralRe: populating a Treeview in c# Pin
Starzfighter4-Mar-07 0:33
Starzfighter4-Mar-07 0:33 
GeneralRe: populating a Treeview in c# Pin
Abisodun4-Mar-07 2:21
Abisodun4-Mar-07 2:21 
Questiondynamically generate the copy of background Pin
sushantkaura3-Mar-07 9:50
sushantkaura3-Mar-07 9:50 
Generalcollection class Pin
needhelpinnet3-Mar-07 9:44
needhelpinnet3-Mar-07 9:44 
GeneralRe: collection class Pin
Not Active3-Mar-07 10:20
mentorNot Active3-Mar-07 10:20 
GeneralRe: collection class Pin
needhelpinnet3-Mar-07 12:28
needhelpinnet3-Mar-07 12:28 
QuestionWord or Excel , get opened file name Pin
Muhammad Nauman Yousuf3-Mar-07 8:00
Muhammad Nauman Yousuf3-Mar-07 8:00 
QuestionSystem.Drawing.Bitmap byte[] Pin
KainPlan3-Mar-07 7:25
KainPlan3-Mar-07 7:25 
AnswerRe: System.Drawing.Bitmap byte[] Pin
Wayne Phipps3-Mar-07 8:03
Wayne Phipps3-Mar-07 8:03 
GeneralRe: System.Drawing.Bitmap byte[] Pin
KainPlan3-Mar-07 8:26
KainPlan3-Mar-07 8:26 
AnswerRe: System.Drawing.Bitmap byte[] Pin
.armin3-Mar-07 11:16
.armin3-Mar-07 11:16 
GeneralRe: System.Drawing.Bitmap byte[] Pin
KainPlan3-Mar-07 14:33
KainPlan3-Mar-07 14:33 
GeneralRe: System.Drawing.Bitmap byte[] Pin
KainPlan3-Mar-07 19:37
KainPlan3-Mar-07 19:37 
Question How to force an IE window to be opened on link click from axWebBrowser Pin
vedmack3-Mar-07 6:21
vedmack3-Mar-07 6:21 
QuestionManaged & Unmanaged objects classification... Pin
Shy Agam3-Mar-07 5:36
Shy Agam3-Mar-07 5:36 
AnswerRe: Managed & Unmanaged objects classification... Pin
Guffa3-Mar-07 6:00
Guffa3-Mar-07 6:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.