We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add summary row while Printing?

Thread ID:





59392 Apr 12,2007 08:00 AM UTC Apr 13,2007 04:19 AM UTC WinForms 2
Tags: GridControl
Asked On April 12, 2007 08:00 AM UTC

When a grid is added to another grid as this.grid1.Controls.Add(grid2).

And in the printview i'm able to see only grid1.
How to print grid2 along with grid1.

For Example

I have a grid 'A', in which i have a column 'Amount'.

I have another grid 'B' which contains only one row.

At the end of Grid 'A' i am showing GridSummaryRow of 'B' which performs Sum(amount).

And the Grid 'B' is added to Grid 'A' as

Now while printing i want grid 'A' above grid 'B'.


haneefm [Syncfusion]
Replied On April 12, 2007 03:27 PM UTC

Hi Raghavendra,

This can be acheived by deriving the GridPrintDocument and overriding OnPrintPage Method. Here you can customize it according to your needs.

Here is a sample.

Best regards,

Replied On April 13, 2007 04:19 AM UTC

Thank you Haneef,

The example give by you works fine for two grids.

Sorry to say, in the above example 'B' is a GridControl and grid 'A' is GridControlBase.

And we are adding this Gridcontrol 'B' to GridControlBase 'A' as


GridControl 'B' is used for showing summary values of Grid A columns.

Now while printing i want grid 'A' along with summary value row i.e Gridcontrol 'B'.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon