So u want to display database in Gridview view So inpage load calls the function of Gridview().
void loadgrid()
{
ds=new dataset()
ad=new sqldataadapter("select * from table",con);
ad.fill(ds);
gridview1.datasource=ds;
gridview1.databind();
}
call the loadgrid function in page load.