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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

print grid with vertical scrollbar

Thread ID:





17722 Aug 14,2004 05:27 PM UTC Aug 14,2004 07:41 PM UTC WinForms 5
Tags: GridControl
Asked On August 14, 2004 05:27 PM UTC

Hi Clay, Could you please help on the following: How to print grid which has vertical scroll bar (so some rows are not visible on the screen)to display all rows on the paper. Thanks

Administrator [Syncfusion]
Replied On August 14, 2004 05:48 PM UTC

If you are printing a single grid, the default print support should page things so you get WYSIWYG output paging across serveral print pages if necessary. If you want to scale the grid down so it all fits on a single page, one way you can do it is shown in this sample. Grid\Samples\In Depth\PrintToFit

Replied On August 14, 2004 06:11 PM UTC

The thing is that I need to print five grids. (two main grids, two their summaries and one grand tottal summary) So far I tried print two - main and summary. But the main grid does not show all its rows although there is space on the paper. It shows those rows which are visible on the screen only. How to fix that and where is the sample you mentioned? Thanks

Administrator [Syncfusion]
Replied On August 14, 2004 06:29 PM UTC

The PrintToFit sample is one of the installed samples shipped with the product. It is found in the Grid\Samples\In Depth\PrintToFit folder. To print all the grid, you will have to enlarge the area you are allocating on the print page for the grid. Here is a link to a KB article that discusses printing two grid on one page. http://www.syncfusion.com/Support/article.aspx?id=10377

Replied On August 14, 2004 07:09 PM UTC

Thanks. It is Ok so far. Also I have two other questions (databound grid): 1. How to get colindex by column name, just opposite NameToColIndex 2.Is there additional way to improve performance of whole tabpage which displays 5 grids? I used Begin/End Update for each grid separately. Thanks in advance

Administrator [Syncfusion]
Replied On August 14, 2004 07:41 PM UTC

1) int field = this.gridDataBoundGrid1.Binder.ColIndexToField; int name = this.gridDataBoundGrid1.GridBoundColumns[field].MappingName; // or int name = this.gridDataBoundGrid1.Binder.InternalColumns[field].MappingName; 2) If making bulk changes or adding or removing rows is what is slow, you can try calling grid.Binder.SuspendBinding/ResumeBinding.


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon