Is it possible to do custom grouping in the ASP.NET ListView control?

Posted by michielvoo on Stack Overflow See other posts from Stack Overflow or by michielvoo
Published on 2009-06-01T19:55:00Z Indexed on 2010/05/11 0:14 UTC
Read the original article Hit count: 509

Filed under:
|

You can only define a GroupItemCount in the ListView, but what if you want to do grouping based on a property of the items in the data source? Sort of an ad-hoc group by. The data source is sorted on this property.

I have seen some examples where some markup in the ItemTemplate was conditionally show, but I want to leverage the GroupTemplate if possible.

Is this possible?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about listview