TreeView and Database

This is a discussion on TreeView and Database within the C# Programming forums, part of the General Programming Boards category; Hello, I'm fairly new to the C# world. What am I saying? I'm pretty new to coding all around and ...

  1. #1
    x64
    x64 is offline
    Registered User
    Join Date
    Jan 2007
    Posts
    2

    TreeView and Database

    Hello, I'm fairly new to the C# world. What am I saying? I'm pretty new to coding all around and I've ran into a problem I have had to luck figuring out. So...

    My first C# application is a simple RSS reader. I have most of the stuff done for it besides the TreeView. I cannot seem to figure out how to get this TreeView to grab data from my database and then display it in a certian way.

    The tree view in the end should look like this:

    Code:
    TreeView
    Folder
    | --- RSS Channel
             -- Channel Feed 1
                -- Channel Feed 2
    | --- RSS Channel 2
             -- Channel Feed 1
    Folder 2
    | --- RSS Channel
             -- Channel Feed 1
          
    | --- RSS Channel 2
             -- Channel Feed 1
                -- Channel Feed 2
    Ok so I have three folders in my database: Folders, Feeds, and NewsItems. The folders in the tree view will call the database table Folders, the rss channels will call data from the Feeds table and finally the channel feeds will call data from the NewsItems table.

    How would I go about doing this? I have predefined values in all tables in the database, I'm not worried about adding new stuff to it yet and have it update. I just need to get it to work.

    Thanks for any help you can give.

  2. #2
    Registered User
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    212
    What code do you have so far?

  3. #3
    x64
    x64 is offline
    Registered User
    Join Date
    Jan 2007
    Posts
    2
    I solved it on my own, I didn't want to wait a month for a reply on this. It quite simple I just never used ADO.NET before.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21