Within Page Load event
if(!page.IsPostBack)
{
gridviewCtl.Visible=false;
}
within btnShowData event
{
gridviewCtl.Visible=true;
bind gridview here....
}
within btnHide event
{
gridviewCtl.Visible=false
gridviewCtl.DataSource=null;
gridviewCtl.Bind();
}