How to change row group title in DataGrid?

I hopefully have a simple problem. I want to change the information in the header of a DataGrid row group. The source of the item is PagedDataCollection with GroupDescription. I have already changed the style as follows:

<Controls:DataGrid.RowGroupHeaderStyles>
         <Style TargetType="Controls:DataGridRowGroupHeader">
          <Setter Property="PropertyNameVisibility" Value="Collapsed" />
          <Setter Property="Background" Value="#FFB4DC69" />
          <Setter Property="Foreground" Value="Black" />
          <Setter Property="SublevelIndent" Value="15" />
         </Style>

         <Style TargetType="Controls:DataGridRowGroupHeader">
          <Setter Property="Background" Value="#44225566" />
         </Style>
</Controls:ExtendedDataGrid.RowGroupHeaderStyles>

But only the hat has changed that the name of the group is not visible. The heading of the group is as follows:
first heading: Project 1: (170 points)
second heading: Project 2: (10 items)
...

What I want to do now is that the title looks like this:
Project 1: 5 developers, 5 testers, 1 project manager
Project 2: 1 developer, 1 tester, 1 project manager
...

But I have no idea how to do this.

- - / .

,

+3

Source: https://habr.com/ru/post/1776393/


All Articles