ASP.net GridView: get LinkItem's row
问题 I want to show "Delete" link in GridView to registred users , therefore I am using templateField: <asp:GridView ID="GridView1" runat="server" AllowSorting="True" OnSorting="GridView_Sort"> <Columns> <asp:TemplateField HeaderText="Control"> <ItemTemplate> <asp:LinkButton ID="LinkButton1" runat="server" onClick="deleteEntry()" Text="Delete"></asp:LinkButton> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> Now in my deleteEntry() function how can I know anything about the row in