Use JS to get the button in a cell in the table to get the information about the row:
The code copy is as follows:
function GetRowNo() {
var e = e || window.event;
var target = e.target || e.srcElement;
if (target.parentNode.tagName.toLowerCase() == "td") {
rowIndex = target.parentNode.parentNode.rowIndex;
}
}