Home Forums WPF controls Xceed DataGrid for WPF How do I use hierarchical view?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #25957 |

    Good day.

    I have a data table that I pass to the DataGridControl and it displays all the data 100%

    In my data table I have 2 columns, ID and PARENT_ID.

    Can anyone please explain how to do a hierarchical group by with columns ID and PARENT_ID?

    Thank you very much 🙂

    Imported from legacy forums. Posted by Du Toit (had 6653 views)

    Xceed Support
    Member
    Post count: 5658

    If you are referring to “master/detail” where a parent row displays child detail rows, you will need to wait till version 2.0 due out next month 🙂

    Imported from legacy forums. Posted by Jenny [Xceed] (had 296 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi Jenny.

    Can the “master/detail” view be built from one data table where you have the ID and PARENT_ID columns in that table?

    An example is a hierarchical category view where you have categories and sub categories with unlimited depth.

    Thanks 🙂

    Imported from legacy forums. Posted by Du Toit (had 551 views)

    Xceed Support
    Member
    Post count: 5658

    Yes, by default, the master/detail implementation will automatically detect DataRelations, Enumerable properties and properties that have a certain attribute.

    You will also have the option to create custom relations to match any setup you may have.

    Send me an email at belandj@xceedsoft.com if you are interested in more information.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 404 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi Jenny.

    I installed v2.0 and set up a master/detail relationship between ID and PARENT_ID.

    It works for one level but not the next level.

    I need a self referencing hierarchy no matter how deep it goes (we use up to 9 levels but there is no limit).

    Example:
    |ROOT
    |-CAT_1
    |–SUB_1_1
    |–SUB_1_2
    |—SUB_1_2_1
    |—SUB_1_2_2
    |–SUB_1_3
    |-CAT_2
    |–SUB_2_1
    |—SUB_2_1_1

    Data:
    ID,PARENT_ID,CATEGORY
    1,0,”ROOT”
    2,1,”CAT_1″
    3,1,”CAT_2″
    4,2,”SUB_1_1″
    5,2,”SUB_1_2″
    6,2,”SUB_1_3″
    7,5,”SUB_1_2_1″
    8,5,”SUB_1_2_2″
    9,3,”SUB_2_1″
    10,9,”SUB_2_1_1″

    Any ideas on how to do that?

    Thank you 🙂

    P.S. I love v2.0!

    Imported from legacy forums. Posted by Du Toit (had 3928 views)

    User (Old forums)
    Member
    Post count: 23064

    Any news on this issue?

    Imported from legacy forums. Posted by Du Toit (had 1204 views)

    User (Old forums)
    Member
    Post count: 23064

    Good day.

    Is there any plans to create this functionality any time soon?

    Regards.

    Imported from legacy forums. Posted by Du Toit (had 583 views)

    Xceed Support
    Member
    Post count: 5658

    I do not have an ETA as to when this feature will be available; however, I do have a sample that I created a while back that demonstrates how to accomplish this (http://xceed.com/CS/files/folders/jenny/entry19303.aspx).

     

    Imported from legacy forums. Posted by Jenny [Xceed] (had 3448 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi Jenny, do you by any chance have an ETA on this by now?

    I looked at your sample and it is sadly not what we are looking for.

    Imported from legacy forums. Posted by Du Toit (had 1106 views)

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.