Skip to content

Only the first item is displayed in the DataGrid group #7315

@LadislavLang

Description

@LadislavLang
  • .NET Core Version: 7 (It's working in dotnet6 !)
  • Windows version: 11
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: No

Problem description:
Set up a DataGrid where the ItemSource is a ListCollectionView with configured GroupDescription and use it with a simple GroupStyle:

         <DataGrid.GroupStyle>
            <GroupStyle>
                <GroupStyle.Panel>
                    <ItemsPanelTemplate>
                        <DataGridRowsPresenter/>
                    </ItemsPanelTemplate>
                </GroupStyle.Panel>
            </GroupStyle>
        </DataGrid.GroupStyle>

Expected/Actual behavior:
It should disply all items (grouped), but only the first item is displayed in each group,
see bug

Minimal repro:
DotNet7WPFGroupingBug.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions