Welcome to the Xceed Community | Help
Community Search  
More Search Options

Removing GroupByItems

Sort Posts: Previous Next
  •  02-10-2012, 12:36 PM Post no. 31665

    Removing GroupByItems

    Hi,

    Is it possible to remove a GroupByItem from the Goup row? I have a master-detail for an object holding an observable collection of child objects. The child is represented by a GroupByItem, but I would prefer to have it set as not visible. Is this possible?

     Alternatively, is it possible to remove ALL GroupByItem objects through use of the DataGridControl.DefaultDetailConfiguration ? 

    Thanks,
    Russell 

    Filed under:
  •  02-16-2012, 10:48 AM Post no. 31690 in reply to 31665

    Re: Removing GroupByItems

    This is to share the answer on the forums: 

    ---------------------------

     This can be done through redoing the template of the HierarchicalGroupByControl. The code for the default template could be found in the Themes folder of the default installation path of the DataGridControl, usually: 

    C:\Program Files (x86)\Xceed\Xceed DataGrid for WPF Professional Edition v4.3\Themes

    You would need to look in TableflowView.GridElementTemplates.xaml of the common folder for this template: 

        <!--**************************
        * TEMPLATE: HierarchicalGroupByControl
        ************************** -->

    When redoing the template, simply remove the xcdg:HierarchicalGroupByControlNode  from the detailConfigurationTemplate: 


    -------------------------------------------
    <!-- DataTemplate for DetailConfiguration displayed inside the HierarchicalGroupByControlNode -->
      <HierarchicalDataTemplate x:Key="detailConfigurationTemplate"
                                DataType="{x:Type xcdg:DetailConfiguration}"
                                ItemsSource="{Binding Path=DetailConfigurations}">

            <!--<xcdg:HierarchicalGroupByControlNode ItemsSource="{Binding Path=GroupLevelDescriptions}"
                                                Title="{Binding Title}" />-->
        </HierarchicalDataTemplate>

    ------------------------------------------- 


    Best Regards,

    Michel Dahdah
    Technical Support
    Xceed Software inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.