Hi Himanshu,
Sorry for the delayed response, For this you can make use of oEvent attribute passed to the event handler as follows.
oTable2.addColumn(new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Web Site"}),
template: new sap.ui.commons.Button({
press: function(oEvent) {
var rowIndex = oEvent.getSource().getParent().getIndex();
alert("Row Index is: "+ rowIndex);
}
}).bindProperty("text", "linkText"),
sortProperty: "linkText",
filterProperty: "linkText",
width: "100px"
}
Thanks & Regards,
Vishweshwara P.K.M.