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.

Grid not refreshing properly after changing GridBounds while printing

Thread ID:

Created:

Updated:

Platform:

Replies:

8802 Nov 20,2003 11:47 AM Aug 11,2004 04:38 PM Windows Forms 5
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On November 20, 2003 11:47 AM

Hi, I am using 1.6.1.8 grid control. I am changing the GridBounds in my GridPrintDocument while printing a page. After that grid is no longer resizing properly. Problem Reproduction steps: 1. In PrintToFit sample anchor grid on 4 sides and run it. 2. Resize the form so that you can see F-col and 16-Row. Grid columns/rows are completely filled in the grid area. 3. Click on print preview. It shows the print preview properly. 4. Now Resize the form. After F col and below row 16 there is white space. Grid no longer resizing properly. Can you look into this and let me know how to solve this problem. thanks, - Reddy

Administrator [Syncfusion]
Replied On November 20, 2003 03:20 PM

Instead of this.gridControl1.GridBounds = saveGridRect; call this.gridControl1.ResetGridBounds Then it should resize fine again. Stefan

M.F.K.
Replied On May 10, 2004 05:05 AM

I had the same problems and tried it but didnt have any effect .... :( >Instead of > >this.gridControl1.GridBounds = saveGridRect; > >call > >this.gridControl1.ResetGridBounds > >Then it should resize fine again. > >Stefan

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

Can you post a sample showing the problem?

M.F.K.
Replied On May 11, 2004 09:42 AM

Ok. It worked fine ... I was making some mistake ... thanks! >Can you post a sample showing the problem?

Dan
Replied On August 11, 2004 04:38 PM

Just FYI for anyone else reading this - I tried the fix below with my grid control 1.6.1.8 and it didn''t fix the problem either. On a guess, I ended up changing this._grid.GridBounds = saveGridRect; to the same thing mentioned: this._grid.ResetGridBounds(); ...so this is in the OnPrintPage handler as well as the click handler. Now the resizing back on the form works properly. >Instead of > >this.gridControl1.GridBounds = saveGridRect; > >call > >this.gridControl1.ResetGridBounds > >Then it should resize fine again. > >Stefan

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.

;