Gridview具有固定的行和列 [英] Gridview with fixed rows and columns

查看:76
本文介绍了Gridview具有固定的行和列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想在gridview中设置数据,使其固定3列。我想给出示例链接请看看此链接。还有除gridview以外的其他方式吗?

Hello everyone,
I want to set data in gridview such that it should have fixed 3 columns. i want to give example link please have a look at this link.Is there any other way than gridview?

推荐答案

你应该使用DataList控件,你可以创建你自己的模板



使用RepeatDirection属性



MyDataList.RepeatDirection = RepeatDirection.Horizo​​ntal





数据列表示例
you should use DataList control, you can create your own template as you given

use RepeatDirection property

MyDataList.RepeatDirection = RepeatDirection.Horizontal


Data List Example


这篇关于Gridview具有固定的行和列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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