ASP.NET - How to group items in a list or grid

Asked By Daniel on 31-Jan-13 06:55 AM
Hi I want to retrieve items from database and what I want is to display data in a list or gridview depending of the need of the user.
means it the user click on list the data will be displayed as listview and if click on grid it will display in gridview,
See the image bellow is how I want data to be diplayed:



nadeem shaikh replied to Daniel on 02-Feb-13 05:22 AM
i Think
 it will solve on the click event of the buttons
you have to hide OR bind the Respective control