title: How to get rowindex in GridView when OnCommand argument used in the field
body: <pre><code>&lt;asp:LinkButton ID="lblViewDetail" runat="server" style="text-decoration:underline;"  OnCommand="ViewSummary" CommandArgument='&lt;%#Eval("ShowlinkDetail") %&gt;' Text='View Detail' /&gt;
  </code></pre>
  
  <p>I have one Menthod in .cs file and this method name call in the datafield</p>
  
  <pre><code>OnCommand="ViewSummary"
  private void ViewSummary()
  {
       //code
  }
  </code></pre>
  
  <p>when I click in the grid view on the lable control then I want to get the Rowindex.Please help.</p>