Click here to Skip to main content
16,016,795 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi ,
i have to list data on page using Asp.net mvc . our client wants to see three different layout to list all the data.

Let me explain how we want to list all the data.

on the top there will be three icons
let say
1) view 1 (Traditional grid view)
2) view 2 (Listing with only images and description in some other design rather than Table tr td)
3) view 3 (again another template with some different columns.)


now on the click of icons we need to load all the data.

i know that by using three different panels with different lay out may work by making one panel visible and other two false. i want to know any other solution or easy way to do so??
Posted

1 solution

Use ListView rather than GridView
 
Share this answer
 
Comments
ravikhoda 2-Jan-14 6:52am    
Well control is not my issue. just wanted to know the systematic way to do this. i dont want to use three different controls and bind same data three times with different view only. how can we achieve this with one control / Custom Template ?

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