Get data row data information
Author:Eve Cole
Update Time:2009-07-01 16:07:48
如果我们需要通过触发事件得到数据行的信息,可以用脚本了来实现,下面是单击数据行得到行信息的代码:
function db(index)
{
var str = new String("");
var curTRObj = this.Rows[index].Control;
//var column=this.column.lengh;
for (i = 1; i <=this.Columns.length-1; i++)
{
if(curTRObj.cells[i].innerText == " ")
{
str += this.Columns[i].UniqueName + "-Nullt";
}
else
{
str += this.Columns[i].UniqueName + "-" + curTRObj.cells[i].innerText + "t";
}
}
str+="n";
confirm(str);
}