I am trying to get the reference of a link button from a template column based the row index. Ideally upon getting the control i want to call the custom command associated with that button on that row. Can you please let me know how to achieve this in the below code.
var row = $find("<%=rgmyGrid.ClientID %>").get_masterTableView().get_dataItems()[rowIndex];
var lnkBtn= row.findcontrol("lBtnMyLinkButton")