Create A Static Gridview in Aspx Page with All The Field You Required to Display Names In Asp BoundField Must Match with Db Data
<asp:gridview id="gdvStudio" runat="server" allowpaging="True" autogeneratecolumns="False" backcolor="White" bordercolor="Black" xmlns:asp="#unknown"></asp:gridview>
<columns>
</columns>
<asp:BoundField DataField="EMPID"
HeaderStyle-HorizontalAlign="Left" HeaderText="EMPID"
InsertVisible="true" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="300"
ReadOnly="true" SortExpression="EMPID">
<HeaderStyle HorizontalAlign="Left" />
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="COLUMN2"
HeaderStyle-HorizontalAlign="Left" HeaderText="COLUMN2"
InsertVisible="true" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="300"
ReadOnly="true" SortExpression="COLUMN2">
<HeaderStyle HorizontalAlign="Left" />
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
Create Your Grid View Like This and CodeBehind You Have to bind with this Gridview...
In Aspx.cs file
DataTable dtsearch=new DataTable
dtsearch = SearchStudio();
if (dtsearch.Rows.Count > 0)
{
pnlStudioInfo.Visible = true;
gdvStudio.DataSource = dtsearch;
ViewState["file"] = dtsearch;
gdvStudio.DataBind();
}