简体   繁体   中英

How to sort a GridView in groups?

I've got a GridView which reads in data from a DataTable.

Every couple of rows, is a different category. When the user clicks on a column for sorting, I would like to sort the results depending on each category? Ie not just sorting all records, but all records of each categroy.

How would one go about doing this?

看看这个: http : //objectlistview.sourceforge.net/cs/index.html它实际上包装了一个ListView,但是它可能对您有用,并且它内置了分组功能

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