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

print grid with vertical scrollbar

Thread ID:

Created:

Updated:

Platform:

Replies:

17722 Aug 14,2004 01:27 PM Aug 14,2004 03:41 PM Windows Forms 5
loading
Tags: GridControl
Irina
Asked On August 14, 2004 01:27 PM

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 01:48 PM

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

Irina
Replied On August 14, 2004 02:11 PM

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 02:29 PM

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

Irina
Replied On August 14, 2004 03:09 PM

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 03:41 PM

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.

CONFIRMATION

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.

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

;