Mahesh ch

Mahesh ch

  • NA
  • 7
  • 1.4k

Print Grid View all Pages

Mar 1 2013 11:06 AM
Hi All,

I have a grid view for which paging in enabled,  trying to print   the grid with all pages.

for this i did like before calling the print execute function from the click event  , i am enabling the grid view paging to false , bind the data and performing the print.working good.
But after that the grid paging should be enabled but it is coming as disabled  , i am getting all the records .

code:
print button click event:

gridview.datasource=dvprint;
gridview.allowpaging=false;
gridview.databind();
register.startupscript(page,this.GetType(),Guid.NewGuid().ToString(),"javascript:jsfunction()",this.GetType().Name);


Is there any way to enable the the page after the function the executed in javascipt.

after start-up is executed nothing is executed.i tried like again i am enabling the paging and binding but at that time print is coming along with the paging.

Please Suggest me..!!