Unplanned
Last Updated: 30 Aug 2017 18:54 by ADMIN
ADMIN
Martin
Created on: 30 Aug 2017 18:38
Category: GridView
Type: Bug Report
1
GridView: When FilteringMode = FilterRow and HeaderTextWrapping = Wrap, filter row cells are with uneven height
workaround:
public MainWindow()
{
    InitializeComponent();

    this.grid.Loaded += grid_Loaded;
}

void grid_Loaded(object sender, RoutedEventArgs e)
{
    this.grid.ChildrenOfType<Grid>().FirstOrDefault(x => x.Name == "PART_OuterGrid").RowDefinitions[1].Height = GridLength.Auto;

    var cells = this.grid.ChildrenOfType<GridViewHeaderCell>();
    foreach (GridViewHeaderCell cell in cells)
    {
        cell.ChildrenOfType<Grid>().FirstOrDefault(x => x.Name == "PART_OuterGrid").RowDefinitions[1].Height = GridLength.Auto;
    }
}
0 comments