如何修复gridview单元格大小 [英] How to fix my gridview cells size

查看:76
本文介绍了如何修复gridview单元格大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有两个网格视图。当一个gridview填充更多数据时,他们的单元格正在压缩。如果gridview填充的数据较少,则其单元格正在扩展。如何修复这些单元格。

解决方案

对于项目模板

< itemstyle width =100px> < / itemstyle> 





对于绑定字段

< asp:boundfield controlstyle-width =100pxdatafield =FeildName1xmlns:asp =#unknown/> 


Hi Everyone,
I have two grid views. When one gridview populates with more data then their cells are compressing . If gridview populate with less data their cells are expanding. how to fix these cells.

解决方案

For item template

<itemstyle width="100px"></itemstyle>



For bound field

<asp:boundfield controlstyle-width="100px" datafield="FeildName1" xmlns:asp="#unknown" />  


这篇关于如何修复gridview单元格大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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