title: How to fetch primary key in GridView but don't display it?
body: <p>Using <code>&lt;asp:GridView&gt;&lt;/asp:GridView&gt;</code> I am trying to display columns of database table. I want to fetch primary key of table but obviously don't want to display it. How can I achieve this?<br>
  This is my GridView  </p>
  
  <pre><code>&lt;asp:GridView ID="MyGrid" runat="server" BorderColor="#0066FF" AllowPaging="false" PageSize="5" AllowSorting="true" AutoGenerateColumns="false"
           AutoGenerateEditButton="true" OnRowEditing="MyGrid_RowEditing" AutoGenerateDeleteButton="true" OnRowDeleting="MyGrid_RowDeleting"
           OnRowDataBound="MyGrid_RowDataBound" EmptyDataText="No Value" BorderWidth="0px" BorderStyle="Solid"&gt;
      &lt;Columns&gt;
          &lt;asp:BoundField DataField="PrimaryKey" HeaderText="UserId"/&gt;
          &lt;asp:BoundField DataField="Column1" HeaderText="Column1" /&gt;
          &lt;asp:BoundField DataField="Column2" HeaderText="Column2" /&gt;
          &lt;asp:BoundField DataField="Column3" HeaderText="Column3" /&gt;
      &lt;/Columns&gt;
  &lt;/asp:GridView&gt;  
  </code></pre>
  
  <p>I also tried <code>visible=false</code> to hide primary key, it hides primary key from displaying but also don't fetch its value and I want this value.<br>
  Hope my question is clear.</p>