Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to use listview with grouping in asp.net?without using database?
please send me the code...
Posted

1 solution

You need to define GroupTemplate for your ListView and also have to set a value to GroupItemCount property.
It is not mandatory to have a database but it must need a DataSource from which it will get data to display.
Please refer these links-
ListView.GroupTemplate[^]
Grouping Data in the ListView Control[^]
Using GroupTemplate in ASP.Net ListView Control(Tiled Display)[^]

The only change you need to do is, instead of providing SQL datasource you just provide your datasource from which you want build the ListView.

Hope, it helps :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900