in

C1 Community

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

Custom Grouping like in Excel

Last post 02-20-2008 10:58 AM by to_sam. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-15-2008 11:02 AM

    Custom Grouping like in Excel

    I am looking for an excel-like grouping feature in the C1FlexGrid. I know of the sample "FlexGroup" which groups content based on column headers. However, I want to be able to create arbitrary groups of rows (independent of column headers). That is, I want the user to be able to select a few rows in the flex grid, click a button "Group" and obtain a custom group of the selected rows. My question is, how can I achieve this? (see screen shot of Excel 2007). Thanks.

     

     

  • 02-19-2008 11:12 AM In reply to

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

    Re: Custom Grouping like in Excel

    Yes, while this is not directly supported you can easily configure C1FlexGrid to do this.  I've put together a sample showing how you can group a set of rows similar to Excel.  The key is to make each row a node using the IsNode property.  Then, for example, to group rows 8-15 you would make rows 9-15 leaves (IsNode = False) and this creates a group like shown in the picture.

    hope it helps,
    Greg

    Filed under: , ,
  • 02-20-2008 10:58 AM In reply to

    Re: Custom Grouping like in Excel

    Thanks Greg, for your helpful sample. The thing is, my grid view already contains an outline tree. So I would need a second tree on my grid, which is probably not possible. Or how else could that be achieved?

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