根据列顺序划分gridview。 [英] divide gridview according to column wise.

查看:81
本文介绍了根据列顺序划分gridview。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Experts,

我正在动态创建gridview。此外,还会根据数据库项创建列数。由于列数很多,gridview宽度超出了主页面。所以我想明智地展示它。有人请建议我一些解决方案。

谢谢

Hello Experts,
I am creating a gridview dynamically. Also the number of columns are created according to database items. And the gridview width is exceeding the main page due to vast number of columns. So I want to display it section wise. Someone please suggest me some solutions.
Thank You

推荐答案

我不建议尝试水平划分它。我认为要么缩小你的字体大小,缩小列大小,要么以某种方式重新排列布局将是比切片更好的选择。
I would not recommend trying to section it horizontally. I think either shrinking your font size, the column size, or somehow rearranging the layout would be a better option than sectioning.


HI,



你可以这样做,



GridView1.Columns [1] .ItemStyle.Width = 150;



或者您可以设置网格滚动条来调整页面部分的列。



另请参阅此链接:http://www.aspdotnet-suresh.com/2013/01/aspnet-set-gridview -column-width.html [ ^ ]



试试这个。


you can do it by this way,

GridView1.Columns[1].ItemStyle.Width = 150;

Or else you can set scrollbar of grid to adjust columns in a section of page.

Also refer this link : http://www.aspdotnet-suresh.com/2013/01/aspnet-set-gridview-column-width.html[^]

Try this.


这篇关于根据列顺序划分gridview。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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