Hi,
I'm looking for a way to change the content of the grouped summary row of a XamDataGrid when I group by a certain field.
Down below is a screenshot displaying my grid. I group the rows using a field called "ID" and the grouped summary row shows content from the same field "ID".
Current view of grouped summary row: 1(2 items),2(1 item),3(2 items),4(1 item).
However, I want the content of the grouped summary row to be showing content of another field "City" which is also unique for each group ( I want to group by ID field only)
Desired output should be Pune(2 items),Hyderabad(1 item),Ajmer(2 items),Patna(1 item).
I'm following strict MVVM so cannot plug in any piece of code in code behind.
Please guide me as to how can I achieve the required output in XAML.
Thanks
HI KomaID,
I retemplated the GroupByRecordPresenter and used a TextBlock and a converter.
I am attaching a sample application.
Sincerely, Matt Developer Support Engineer
Thanks. I also need help with changing the style of GroupBy Area. Attached is a snapshot of the group by area in a grid. Can you please help me with changing the background color and height of the group by area? I did try to edit the style of GroupByArea but the changes were not reflected.
Regards
Yes you can set the height of the groupby area with a setter.
<Style TargetType="{x:Type igDP:GroupByAreaMulti}">
Setter Property="Height" Value="25"/>
</Style>
Thanks!
In the screenshot below, I'm looking for a way to minimize the size of grouping field icon (ID here) and also change the content of empty group by area.
Please guide me with the same.
You can change the description of the GroupByArea by channging the Prompt1 and Prompt2 properties.
<Setter Property="Height" Value="125"/>
Setter Property="Prompt1" Value="Hello"/>
<Setter Property="Prompt2" Value="yes"/>
Thanks. I'm still seeking an answer to how do I change the style (shape and size) of the icons in the groupby area?
HI,
I am attaching a sample what will change the size of the labels in the GroupByAreaMulti.
Sincerely,
Matt Developer Support Engineeer
Please let me kmow if you need further assistance regarding this thread.
Sincerley,
Matt Developer Support Engineer