如何使用javascript设置网格视图列高度和widh [英] how to set grid view column height and widh using javascript
问题描述
使用循环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屋!