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.

gridPrintToFit

Thread ID:

Created:

Updated:

Platform:

Replies:

21478 Nov 11,2004 08:48 AM Nov 11,2004 10:45 AM Windows Forms 2
loading
Tags: GridControl
Tyler Kohn
Asked On November 11, 2004 08:48 AM

I have a gridDataBoundGrid within a tab page and I''m using the gridPrintToFit example as a guide to print the grid onto a single page. The printing seems to work, but when I return to the application the grid''s visible size seems to be locked (if I resize the window the visible portion of the grid doesn''t change - white borders surround the existing viewable grid. This seems to be a result of setting/resetting the gridbounds. Rectangle saveGridRect = this._grid.GridBounds; this._grid.GridBounds = new Rectangle(0, 0, gridWidth, gridHeight); this._grid.DrawGrid(g); this._grid.GridBounds = saveGridRect; If I comment out setting/resetting the gridbounds i don''t run into the resizing problem in the application (but, of course the grid doesn''t print). It seems that once I reset the gridBounds, it is locked at that size and no longer will grow/shrink as its parent window grows/shrinks. any ideas how I can fix this? thanks, Tyler

Administrator [Syncfusion]
Replied On November 11, 2004 10:09 AM

Instead of this._grid.GridBounds = saveGridRect; try this._grid.ResetGridBounds();

Tyler Kohn
Replied On November 11, 2004 10:45 AM

perfect, thanks!

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.

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.

;