Hide aggregators and column descriptors area

3 posts, 0 answers
  1. Roman
    Roman avatar
    15 posts
    Member since:
    Jan 2011

    Posted 03 Jul Link to this post

    Hello,

    How can I hide aggregators and column descriptors areas (see attached image)?

    So far I found what I can execute the following code

    pivotGrid.PivotGridElement.AggregateDescriptorsArea.Visibility = ElementVisibility.Collapsed;
    pivotGrid.PivotGridElement.ColumnDescriptorsArea.Visibility = ElementVisibility.Collapsed;

    and these areas will not be visible, but their placeholder still be displayed, i.e. empty rectangle at the top of the pivot grid. How can I completely collapse these areas?

  2. Roman
    Roman avatar
    15 posts
    Member since:
    Jan 2011

    Posted 04 Jul in reply to Roman Link to this post

    Nevermind, found that 

    pivotGrid.ColumnHeaderHeight = 0;

    do the trick. It is not obvious from the property name, though.

     

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 05 Jul Link to this post

    Hello Roman,

    Thank you for writing. 

    I am glad that you have found a suitable solution for your requirement. Indeed, the PivotGridElement.ColumnHeaderHeight and PivotGridElement.ColumnWidth properties are appropriate for adjusting the aggregate area's height and width.

    I hope this information helps. Should you have further questions I would be glad to help.

    Regards,
    Dess
    Telerik
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Back to Top