Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1176
How fill a TreeView with a Only table.
posted

Hi, I have a table with the Bill of Material structure, and I want to show in a TreeView.

Showing the levels the BOM. I try to do with the Recursive Example, but I can't...

I sent to you a file, with the structure of my table. Please help me.

Thank

Structure.rar
Parents
No Data
Reply
  • 710
    Verified Answer
    posted

    I think you need to create a DataRelation on the DataSet. For example,

     

     

     

    ds.Relations.Add(

    new DataRelation("MyRelation",

    ds.Tables[0].Columns["KeyID"],

    ds.Tables[0].Columns[

    "ParentKeyID"]));

Children
No Data