You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that when a DataGrid with a group style, but without any initial rows is rendered, the column headers are does not show.
After an initial set of rows has been added the headers display as expected, even if the rows are cleared again.
The problem reappears if the ItemsSource is changed causing grouping to be reapplied. This is f.ex. the case when running with a mvvm structure where the datagrid hosts different content based on a folder structure.
Description
Based on the following discussion: #10774
The problem is that when a DataGrid with a group style, but without any initial rows is rendered, the column headers are does not show.
After an initial set of rows has been added the headers display as expected, even if the rows are cleared again.
The problem reappears if the ItemsSource is changed causing grouping to be reapplied. This is f.ex. the case when running with a mvvm structure where the datagrid hosts different content based on a folder structure.
Reproduction Steps
Setup:
DataGridColumnVirtualization.zip
Expected behavior
I would expect the column headers to be initially rendered, as they do so when no GroupStyle is present
Actual behavior
No column headers are shown initially
Regression?
Not that I know of
Known Workarounds
Deferring the GroupStyle till after items has been added seems to fix the problem, see #10774 (reply in thread)
Impact
Reduces the usability of the datagrid for complex data structures where multiple columns and groupings are needed to give an overview.
Configuration
.NET Framework 4.8
Windows 11 Pro, v26100.3775
64-bit operating system, x64-based processor
Other information
No response
The text was updated successfully, but these errors were encountered: