Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
17954 | Aug 20,2004 08:38 AM UTC | Aug 20,2004 08:48 PM UTC | WinForms | 5 |
![]() |
Tags: GridControl |
m_prGrid.GridBounds = new Rectangle(0, 0, 600, 300);
e.Graphics.IntersectClip(new Rectangle(10, 10, 700-50, 700-50));
The grid starts at location 0,0, but your clipping rectangle is soecified to start at 10, 10. So, a little piece of the headers is being clipped. If you change teh grid''s location to start at 10,10, the grid will no longer be clipped. One other thing that that you need to do is to call m_prGrid.ResetGridBounds(); at the bottom of the OnPrintPage code to make sure the grid bounds is reset to the defaults for the next time the grid is drawn.
But I don''t think this will be an easy way to draw serveral grids across several pages. I think hiding columns will be simpler. I will try to post a sample later in the next couple of days on how you might do this with hidden columns.
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.
This page will automatically be redirected to the sign-in page in 10 seconds.