Unplanned
Last Updated: 13 Sep 2023 15:01 by Martin Ivanov
Martin Ivanov
Created on: 13 Sep 2023 15:01
Category: DataGrid
Type: Bug Report
1
DataGrid: Space is reserved for the column header's sort indicator when CanUserSort is False

Remove the space reserved for the sort indicator in the column header, when CanUserSort is False and therefore the sort indicator is not displayed. The current behavior prevents the user to easily center the header text.

To work this around, you can edit the ControlTemplate of DataGridColumnHeader. In the template, you can update the Visibility of the TextBlock with x:Name set to "SortIndicator" when CanUserSort is False.

0 comments