Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
9458 | Dec 18,2003 04:28 PM UTC | Dec 20,2003 04:40 PM UTC | WinForms | 6 |
![]() |
Tags: GridControl |
protected override void OnPrintPage(PrintPageEventArgs ev) { base.OnPrintPage(ev); if(!ev.HasMorePages) { //set where you want the second grid displayed... int width = grid2.Model.ColWidths.GetTotal(0, grid2.Model.ColCount); int height = grid2.Model.RowHeights.GetTotal(0, grid2.Model.RowCount); Rectangle botGridRect = new Rectangle(ev.MarginBounds.Left, ev.PageBounds.Height/2, width, height); grid2.DrawGrid(ev.Graphics, botGridRect, false); //botGridRect.Inflate(1,1); ev.Graphics.DrawRectangle(Pens.Black, botGridRect); } }
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.