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
100
Merged Cells / Collapsed
posted

Is there a group by view for either xamgrid or xamdatagrid that acts more like a pivot table where the group by s become the left most columns like with xamgrid with:

  <ig:GroupBySettings AllowGroupByArea="Top" GroupByOperation="MergeCells" />

But the you have the ability to expand / collapse the groups? I tried the xampivotgrid with FlatDataSource and do not want to use it.  I also have customized the group by headers as per:

http://help.infragistics.com/Help/NetAdvantage/WPF/2011.2/CLR4.0/html/xamGrid_Display_Summary_Row_in_xamGrid_GroupBy_Headers.html 

I though I saw a screen shot some where of a compact view but I cannot seem to find it again.

 

 

 

  • 138253
    Offline posted

    Hello Drew,

    Thank you for your post. I have been looking into it and I suggest you set the XamGrid’s GroupByOperation to GroupByRows and add the following code in your XamGrid’s GroupByCollectionChanged event: 

    if (e.NewGroupedColumns.Count > e.PreviousGroupedColumns.Count)
    {
        e.NewGroupedColumns.Last().Visibility = System.Windows.Visibility.Collapsed;
    }
    else
        e.PreviousGroupedColumns.Last().Visibility = System.Windows.Visibility.Visible;
    

     

    Please let me know if this helps you or you need further assistance on this matter.

    Looking forward for your reply.