开发者

How to sort a GridView in groups?

开发者 https://www.devze.com 2023-03-27 05:38 出处:网络
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 e

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? I.e. not just sorting all records, but 开发者_运维知识库all records of each categroy.

How would one go about doing this?


Have a look at this: http://objectlistview.sourceforge.net/cs/index.html It actually wraps a ListView but it may work for you and it has built in grouping

0

精彩评论

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