简体   繁体   中英

How I can make Row Grouping in DataGrid WPF Desktop Application

I wanna make data grouping like this picture: 在此处输入图片说明

http://leeontech.wordpress.com/2010/02/01/summary-row-in-datagrid/

There is a code like RowHeaderStyle in WPF Silverlight but I don't get it in desktop datagrid.

<dg:DataGrid x:Name="dg">
  <dg:DataGrid.RowGroupHeaderStyles>
    <Style... />
  </dg:DataGrid.RowGroupHeaderStyles>
</dg:DataGrid>

It uses silverlight application. I'm still don't know how to do this in desktop datagrid using WPF.

Any resources or way to create this? Help please..

I sugget you use Extended WPF Toolkit™ Community Edition which is an opensource has DataGrid similar to your description https://wpftoolkit.codeplex.com/ download it.

https://wpftoolkit.codeplex.com/wikipage?title=DataGrid&referringTitle=Home has the sample code for DataGrid

https://wpftoolkit.codeplex.com/downloads/get/785038 here is the live example. download and see.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM