This is a migrated thread and some comments may be shown as answers.

Hide aggregators and column descriptors area

2 Answers 111 Views
PivotGrid and PivotFieldList
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 03 Jul 2016, 01:34 PM

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 Answers, 1 is accepted

Sort by
0
Roman
Top achievements
Rank 1
answered on 04 Jul 2016, 09:06 AM

Nevermind, found that 

pivotGrid.ColumnHeaderHeight = 0;

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

 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 05 Jul 2016, 08:02 AM
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.
Tags
PivotGrid and PivotFieldList
Asked by
Roman
Top achievements
Rank 1
Answers by
Roman
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or