Click here to Skip to main content
16,007,932 members
Home / Discussions / C#
   

C#

 
GeneralRe: Saving data to file Pin
Richard W Allen17-Oct-07 21:24
Richard W Allen17-Oct-07 21:24 
GeneralRe: Saving data to file Pin
Patrick Etc.18-Oct-07 8:07
Patrick Etc.18-Oct-07 8:07 
GeneralRe: Saving data to file Pin
Richard W Allen18-Oct-07 8:52
Richard W Allen18-Oct-07 8:52 
GeneralRe: Saving data to file Pin
Patrick Etc.18-Oct-07 9:51
Patrick Etc.18-Oct-07 9:51 
Questionbackgroundworker vs threading Pin
brsecu16-Oct-07 9:41
brsecu16-Oct-07 9:41 
AnswerRe: backgroundworker vs threading Pin
il_masacratore16-Oct-07 9:44
il_masacratore16-Oct-07 9:44 
AnswerRe: backgroundworker vs threading Pin
Scott Dorman16-Oct-07 13:33
professionalScott Dorman16-Oct-07 13:33 
QuestionHow to populate a treeview from a dataset Pin
KirkNew2C#16-Oct-07 9:32
KirkNew2C#16-Oct-07 9:32 
I am very new to C#. I need to create a Windows form that will read a SQL table and populate a treeview. I can connect to the DB, create the dataadapter, populate a data set. The problem is how to use the dataset to populate a treeview.

I have looked at a few examples here but none use a dataset, or the data structure was different and I could not modify to work with my data or the examples were more than I needed and too complex for a beginner. Can some one suggest a URL, book or show me an example of code that simply takes the data as shown and populates a treeview.

I would really appreciate the help.

Thank you.


I have a SQL Server 2005 table containing this data shown below.

Child Parent depth Hierachy
1 NULL 0 01
2 1 1 01.02
5 2 2 01.02.05
6 2 2 01.02.06
3 1 1 01.03
7 3 2 01.03.07
11 7 3 01.03.07.11
14 11 4 01.03.07.11.14
12 7 3 01.03.07.12
13 7 3 01.03.07.13
8 3 2 01.03.08
9 3 2 01.03.09
4 1 1 01.04
10 4 2 01.04.10
15 NULL 0 15
15 15 1 15.15
16 15 1 15.16
18 16 2 15.16.18
17 15 1 15.17

QuestionSend/Receive commands w/PS2 keyboard Pin
JayHart16-Oct-07 8:24
JayHart16-Oct-07 8:24 
AnswerRe: Send/Receive commands w/PS2 keyboard Pin
led mike16-Oct-07 8:38
led mike16-Oct-07 8:38 
GeneralRe: Send/Receive commands w/PS2 keyboard Pin
JayHart16-Oct-07 8:39
JayHart16-Oct-07 8:39 
GeneralRe: Send/Receive commands w/PS2 keyboard Pin
led mike16-Oct-07 8:59
led mike16-Oct-07 8:59 
GeneralRe: Send/Receive commands w/PS2 keyboard Pin
Dan Neely16-Oct-07 9:41
Dan Neely16-Oct-07 9:41 
Question[Message Deleted] Pin
Trustapple16-Oct-07 8:21
Trustapple16-Oct-07 8:21 
AnswerRe: compile time Pin
Dave Kreskowiak16-Oct-07 8:29
mveDave Kreskowiak16-Oct-07 8:29 
GeneralRe: compile time Pin
Anthony Mushrow16-Oct-07 9:46
professionalAnthony Mushrow16-Oct-07 9:46 
AnswerRe: compile time Pin
led mike16-Oct-07 8:36
led mike16-Oct-07 8:36 
GeneralRe: compile time Pin
MasterSharp16-Oct-07 11:08
MasterSharp16-Oct-07 11:08 
QuestionHelp with SQL Parameter Pin
kallileo16-Oct-07 8:08
kallileo16-Oct-07 8:08 
AnswerRe: Help with SQL Parameter Pin
Giorgi Dalakishvili16-Oct-07 8:48
mentorGiorgi Dalakishvili16-Oct-07 8:48 
GeneralRe: Help with SQL Parameter Pin
kallileo16-Oct-07 9:07
kallileo16-Oct-07 9:07 
GeneralRe: Help with SQL Parameter Pin
Giorgi Dalakishvili16-Oct-07 9:18
mentorGiorgi Dalakishvili16-Oct-07 9:18 
GeneralRe: Help with SQL Parameter Pin
kallileo16-Oct-07 9:32
kallileo16-Oct-07 9:32 
GeneralRe: Help with SQL Parameter Pin
Giorgi Dalakishvili16-Oct-07 10:43
mentorGiorgi Dalakishvili16-Oct-07 10:43 
QuestionMilitary Time Pin
stormcandi16-Oct-07 7:53
stormcandi16-Oct-07 7:53 

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.