件中提交
this.textboxs = new array(textboxs.length);
for(var i = 0; i< textboxs.length ;i++)
{
this.textboxs[i] = textboxs[i];
}
}
this.selectedindex = -1; //选择索引,-1表示没有行被选中
this.deleteenable = true; //是否显示删除按钮
this.rowcount = 0; //行数
this.rows = new array(); //行集合
this.parent = parent; //此控件的父控件
this.id="dg"; //本控件的id
for(var i = 0; i< colcount;i++)
{
if(colwidths == null)
this.colwidths[i] = 60; //指定默认行高为60,也可以用字符串指定为百分数
else
this.colwidths[i] = colwidths[i];
this.titlerow[i] = titlerow[i];
if(postcols == null)
this.postcols[i] = 0; //默认是没有列要上传
else
this.postcols[i] = postcols[i];
if(inputcols == null)
this.inputcols[i] = 0; //默认是没有列要上传
else
this.inputcols[i] = inputcols[i];
}
}