in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Custom trees

Last post 08-28-2007 12:33 PM by pcpgomes. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-24-2007 7:08 AM

    Custom trees

    Hi,

    I want to create a sort of hierarquical tree with 2 levels. From the manual I get that I can do that with the IsNode property.

    My question is: can I add the rows and then "organize" the tree, or each time I add a row I have to define the level?

    What I'm doing now is adding all rows to the flexgrid, then sort them and then give them levels. But it's not working, and I thought it might be because you have to define levels in the adding step. It's not clear in the manual...

    Thanks :)
  • 08-24-2007 7:33 AM In reply to

    Re: Custom trees

    Is it possible that the sort (with 2 columns) is messing up the tree?
  • 08-27-2007 6:12 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 498

    Re: Custom trees

    Since you're sorting, it sounds like you want to group rows that have similar values into a node?  This can be accomplished by the Subtotal method.  So check that out...
    C1FlexGrid1.Subtotal(C1.Win.C1FlexGrid.AggregateEnum type, int level, int groupOn, int totalOn)

    Regards,
    Greg L

    Filed under: ,
  • 08-28-2007 12:33 PM In reply to

    Re: Custom trees


    I was comparing the wrong variable when setting the node levels... But I'm checking the subtotal thing anyway.

    thanks :)
     

Page 1 of 1 (4 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.