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


Thread ID:





21478 Nov 11,2004 01:48 PM UTC Nov 11,2004 03:45 PM UTC WinForms 2
Tags: GridControl
Tyler Kohn
Asked On November 11, 2004 01:48 PM UTC

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 03:09 PM UTC

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

Tyler Kohn
Replied On November 11, 2004 03:45 PM UTC

perfect, thanks!


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