开发者

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? 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜