Bind data to winforms Treeview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • renuami
    New Member
    • Feb 2009
    • 15

    Bind data to winforms Treeview

    Hello

    Please advise ....

    I do not know in which section i should be posting Winforms Questions. There is not Option. So i am posting it here... apologize for any inconvinence... ..

    This is my first time working with treeview control in winforms. Can someone please help me how to bind data to winforms tree view from 3 tables. I need the out put as follows

    I need the output as.

    Parent Node CourseName
    Child Node Semester
    SubChild Node Students
    Parent Node
    Child Node
    SubChild Node
    SubChild Node


    Here is my table structure.... These are my tables...

    Table:tab_cours e_master
    Fields:

    course_id
    course_name
    campus_id
    duration
    No_of_semesters


    Table:tab_cours e_semester
    Fields:

    c_sem_id
    course_id
    sem_id


    Table:tab_semes ter_master
    Fields:

    sem_id(primary Key)
    sem_no


    Parent:Course Name
    Child:semno
    Subchild:studen t name

    Please advise.....Than ks in advance for the help....
  • vekipeki
    Recognized Expert New Member
    • Nov 2007
    • 229

    #2
    Did you try to enter "treeview binding" in Google?

    This is the first result: http://www.codeproject.com/KB/tree/dbTree.aspx

    Comment

    Working...