开发者

How to change DataGrid Grouping Display to some other aggregate

开发者 https://www.devze.com 2023-03-25 20:09 出处:网络
I have a DataGrid bound to a PagedCollectionview property of my View-Model.I\'ve added a PropertyGroupDescription to the PagedCollectionView.GroupDescriptions.

I have a DataGrid bound to a PagedCollectionview property of my View-Model. I've added a PropertyGroupDescription to the PagedCollectionView.GroupDescriptions.

Currently the grouping heading displays th开发者_JS百科e value of the property that is being grouped on, and an item count for that group. What I would like is to add min,max, and sums of various values of the group, and display those in the header as well. Is such a thing possible with the DataGrid?


Yes, it's possible. You should create own DataGridRowGroupHeader Style. Sample here. Also look at this sample

0

精彩评论

暂无评论...
验证码 换一张
取 消