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

Changing font size in GDBG

Thread ID:





79560 Feb 14,2009 07:07 AM UTC Sep 7,2009 01:07 PM UTC WinForms 1
Tags: GridControl
Hyung-Jin Lee
Asked On February 14, 2009 07:07 AM UTC

I printed GridDataBoundGrid as below code
but colums are so many.
Is there any way to get font smaller ?
this.GridDataBound1.Font.Size = 7;
this code got error because it is
read only ... I don't know why...
Please, give me an advice.
Thank you.

GridPrintDocument pd =
new GridPrintDocument(this.GridDataBound1);
PrintDialog printDialog = new PrintDialog();
printDialog.Document = pd;
pd.DefaultPageSettings.Landscape = true;
if (printDialog.ShowDialog()
== DialogResult.OK)

Rajadurai C [Syncfusion]
Replied On September 7, 2009 01:07 PM UTC

Hi Chin,

Thanks for your interest in Syncfusion Products.

I apologize for the long delay in responding to you.

It seems you would like to print the grid with many columns in a single page. It can be achieved by drawing the grid as a large bitmap and scaled to fit the print page. Please refer to our browser sample 'Print To Fit Demo' in Syncfusion Dashboard v7.3.0.20 in the following location.
[InstallDrive]:\users\[username]\documents\syncfusion\essentialstudio\\Windows\Grid.Windows\Samples\2.0\Print\Print To Fit Demo\cs

In this sample, GridPrintDocument class is overridden to handle the printing of entire grid on single page by drawing the grid as bitmapl and scaling to fit the output page.

Please let me know if you have any further concerns.



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