1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

using DataSet to fill a treeview

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

  1. cgcgames

    cgcgames New Member

    Aug 28, 2010
    Likes Received:
    Trophy Points:
    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