Articles in this section
Category / Section

How to hide the top row on pivot grid control which says Drop Filter Fields here

1 min read

We found that this cannot be achieved directly in our control. However this can be achieved by adding the following lines.

 

C#

void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
this.pivotGrid1.GroupingBar.FilterHeaderArea.Visibility = System.Windows.Visibility.Collapsed;
this.pivotGrid1.GroupingBar.FilterHeaderArea.BorderBrush = Brushes. Transparent;
var parent = VisualTreeHelper.GetParent (this.pivotGrid1.GroupingBar.FilterHeaderArea) as Grid;
parent.Height = 35d;
parent.RowDefinitions [0].Height = new GridLength (0d);
parent.VerticalAlignment = VerticalAlignment.Bottom;
this.pivotGrid1.Margin = new Thickness (0, -37, 0, 0);
}

 

 

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

Figure: Pivot Grid not showing “Drop Fields Here”

 

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