The data source does not support server-side data paging. gridview
<p>There are 2 button.In click on button1,showing data in gridview and second button,exporting into excel.I has created gridview and allow paging.In export(button2) function,making paging to false for taking all data in one excel.At the end of export function making paging to true.When I will click on button1,it does not show previous data.I want like that.</p>

<pre><code>Button1_click()
{
 Gridview1.Datasource ="";
 Gridview.DataBind();
 function1();
}


Button2_click()
{
function1()
  Gridview1.AllowPaging = false; 

//code for export grid
//End
Gridview1.AllowPaging = false; 
Gridview.DataBind();
}
</code></pre>
