title: To get current row ID from asp grid in code behind from LinkButton
body: <p>I have asp grid like this :</p>
  
  <pre><code>&lt;asp:GridView ID="gvDetails" runat="server" AutoGenerateColumns="false" Width="100%" ShowFooter="false" DataKeyNames="ID" Enabled="false" BorderStyle="solid" BorderWidth="1px" BorderColor="#ACA899" BackColor="#BFD3EE" CellSpacing="1" GridLines="none"&gt;
  &lt;asp:TemplateField HeaderText="ProductID" Visible="false" HeaderStyle-                  HorizontalAlign="left"  HeaderStyle-CssClass="gvheader" HeaderStyle-Font-Bold="true" ItemStyle-Width="40px" &gt;
      &lt;ItemTemplate&gt;
         &lt;asp:label runat="server" ID="lblProductID" Text='&lt;%#eval("ProductID") %&gt;'/&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt;    
  &lt;asp:TemplateField HeaderText="" HeaderStyle-HorizontalAlign="left" HeaderStyle-CssClass="gvheader" HeaderStyle-Font-Bold="true" ItemStyle-Width="50px"&gt;
      &lt;ItemTemplate&gt;
         &lt;asp:LinkButton ID="lnkbtnShowProductDetails" OnClick="lnkbtnShowProductDetails_Click" runat="server"  Enabled="true"&gt;Details&lt;/asp:LinkButton&gt;                                                 
      &lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt;
  &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>And in code behind i have :</p>
  
  <pre><code>Sub lnkbtnShowProductDetails_Click(ByVal sender As Object, ByVal e As EventArgs)
  
  End Sub
  </code></pre>
  
  <p>How can i get current row's ID (value of datakeynames), I dont want to use command and command argument here.</p>
  
  <p>Please assist me on this !!</p>