Adding row while printing

Hi,

When I click printpreview i need to add a new row to the GridDataBoundGrid at the last.I will delete that row when i close the printpreview window. It is printing correctly when i click printpreview. But when i click on the grid on any column for sorting and now when i click printpreview the added row is printing at the top but it should print at the bottom.

Please tell me if u have any solution for this.

Thanks
Raghavendra

1 Reply

HA haneefm Syncfusion Team June 26, 2007 03:00 PM UTC

Hi Raghavendra,

This can be acheived by deriving the GridPrintDocument and overriding OnPrintPage Method.Here is a sample that show this.

Sample : printtwogridsonsamepage.zip

Below is a KB that implements some customized printing in a grid. Please refer this and let me know if this helps.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=63

Best regards,
Haneef

Loader.
Up arrow icon