如何使用javascript设置网格视图列高度和widh [英] how to set grid view column height and widh using javascript

查看:82
本文介绍了如何使用javascript设置网格视图列高度和widh的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用循环iam能够使用javascript通过以下代码在网格视图中找到列现在我如何设置widht到列





var tbl = document.getElementById(dgTbl);

for(var i = 0; i< tbl.rows.length; i ++){

for (var j = 0; j< colNo; j ++){

if(tbl.rows [i] .cells [j]!= null){



tbl.rows [i] .cells [j] .className =locked;



}

}

}

解决方案

浏览以下链接以获取建议。



http://forums.asp.net/ t / 1135518.aspx / 1 [ ^

hi using loop iam able to find the columns in the grid view using javascript by below code now how can i set widht to the columns


var tbl = document.getElementById(dgTbl);
for (var i = 0; i < tbl.rows.length; i++) {
for (var j = 0; j < colNo; j++) {
if (tbl.rows[i].cells[j] != null) {

tbl.rows[i].cells[j].className = "locked";

}
}
}

解决方案

Go through the following link for suggestion .

http://forums.asp.net/t/1135518.aspx/1[^]


这篇关于如何使用javascript设置网格视图列高度和widh的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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