using DataSet to fill a treeview

Discussion in 'C#' started by cgcgames, Aug 28, 2010.

  1. cgcgames

    cgcgames New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    i have looked around the forum and on the web but couldnt find anything that seemed to be what i was looking for. or i couldnt follow how they where doing it.

    What i need is to fill a treeview from a dataset. the dataset has been filled from a database.

    when i want to fill a combobox all i need to do is

    combo.DataSource = dtclimate;
    combo.DisplayMember = "name";
    combo.ValueMember = "id";
    obviously the dataSource is a temp DataTable. that gets filled by a foreach loop.

    i was wanting to do somthing simirler with a treeview but it has diffrent ways of doing things.

    was wondering if someone could give me a good tut to look at or tell me a good way to handle a treeview and what everything stands for in the syntax. becuase it looks like its pretty diffrent logic and syntax for a treeview but i could be wronge.

    thanks to all of you
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice