title: Click Gridview row download particular file in asp.net
body: <p>In my application, I have a gridview control with 6 columns. When I click on the 6th column row I need to download that file. I am binding gridview from database. How can I take gridview column as like a link?</p>
  
  <p>My markup:</p>
  
  <pre><code>&lt;asp:GridView ID="GridView1" Width="950px" CssClass="Grid" runat="server" AutoGenerateColumns="false" &gt;
      &lt;Columns&gt;
          &lt;asp:BoundField DataField="ID" HeaderText="" ItemStyle-ForeColor="White" /&gt;
          &lt;asp:BoundField DataField="Name" HeaderText="Name" /&gt;
          &lt;asp:BoundField DataField="SName" HeaderText="SName" /&gt;                        
          &lt;asp:BoundField DataField="Date" HeaderText="Date" /&gt;
          &lt;asp:BoundField DataField="Size" HeaderText="Size(MB)" /&gt;     
          &lt;asp:BoundField DataField="Time" HeaderText="Time" /&gt;                             
          &lt;asp:HyperLinkField DataTextField="FileName" DataNavigateUrlFields="Id" HeaderText="File Name" ItemStyle-Width = "150" /&gt;
      &lt;/Columns&gt;        
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>My image:</p>
  
  <p><a href="https://i.stack.imgur.com/FfDln.png" rel="nofollow noreferrer">enter image description here</a></p>