function getIt(obj) {
var r,c
o = obj
while(o.tagName != "TD" && o.tagName != "TH")
o = o.parentNode
if(o.tagName != "TD" && o.tagName != "TH") return
c = o.cellIndex
while(o.tagName != "TR")
o = o.parentNode
if(o.tagName != "TR") return
r = o.rowIndex
//下面的代码是取gridview模板列中控件的内容
//document.getElementById("grid1").rows[r].cells[0].innerText可以求网格单元的内容
document.getElementById("grid1").rows[r].cells[0].firstChild.value="";
document.getElementById("grid1").rows[r].cells[1].firstChild.value="";
document.getElementById("grid1").rows[r].cells[2].firstChild.value="";
}