Articles in this section

How to set the width of the DataHeaderArea items

C#

if (this.pivotGridControl1.GroupingBar != null)

for (int i = 0; i < this.pivotGridControl1.GroupingBar.DataHeaderArea.Items.Count; i++)

{

ListBoxItem item = this.pivotGridControl1.GroupingBar.DataHeaderArea.ItemContainerGenerator.ContainerFromIndex(i) as ListBoxItem;

item.MinWidth = 80;

 

If you are in need to hide the items we suggest you to set the Visibility property of DataHeaderArea to Collapsed.

C#

this.pivotGridControl1.GroupingBar.DataHeaderArea.Visibility = System.Windows.Visibility.Collapsed;

 

C:\Users\labuser\Dropbox\Screenshots\Screenshot 2014-06-10 17.42.15.png

Figure: Pivot Grid shows customized width of data header items

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied