如何用三种不同的布局绑定gridview? [英] How to bind gridview with three different layout ?

查看:108
本文介绍了如何用三种不同的布局绑定gridview?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我必须使用Asp.net mvc在页面上列出数据。我们的客户希望看到三种不同的布局来列出所有数据。



让我解释一下我们要如何列出所有数据。



顶部会有三个图标

让我们说

1)查看1(传统网格视图) )

2)查看2(仅列出其他一些设计中的图像和描述,而不是表格trd)

3)查看3(另一个模板包含一些不同的列) 。)





现在点击我们需要加载所有数据的图标。



i知道通过使用具有不同布局的三个不同面板可以通过使一个面板可见而其他两个面板可见来工作。我想知道任何其他解决方案或简单方法吗?

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

推荐答案

使用ListView而不是GridView
Use ListView rather than GridView


这篇关于如何用三种不同的布局绑定gridview?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆