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); }
Figure: Pivot Grid not showing “Drop Fields Here”