For saving you need to follow the same procedure as
http://www.aspforums.net/Threads/270629/Upload-and-Download-files-SQL-Server-Database-ASPNet/Answered#repliesAnswers
for displaying in GridView you need can use the following sample
GridView
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns = "false">
<Columns>
<asp:BoundField DataField = "Name" HeaderText = "Name" />
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="lnkDownload" OnClick = "DownloadFile" runat="server" Text = "Download" CommandArgument = '<%# Eval("Id") %>'></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Now Fire the following query and bind the GridView
select Id, Name from tblFiles
Then add the following event to Download the file
protected void DownloadFile(object sender, EvenArgs e) {
string strQuery = "select Name, ContentType, Data from tblFiles where id=@id";
SqlCommand cmd = new SqlCommand(strQuery); cmd.Parameters.Add("@id", SqlDbType.Int).Value = (sender as LinkButton).CommandArgument;
DataTable dt = GetData(cmd);
if (dt != null)
{ download(dt);
}
}
And for more details refer Display Files saved in Database Table in ASP.Net GridView with Download button