Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
6108 | Jul 31,2003 06:56 AM UTC | Aug 13,2003 06:06 AM UTC | WinForms | 8 |
![]() |
Tags: GridControl |
grid.BeginUpdate();
grid.Properties.BlackWhite = true;
grid.Properties.DisplayHorzLines = false;
grid.Properties.DisplayVertLines = false;
GridBorderStyle border = grid.DefaultGridBorderStyle;
grid.DefaultGridBorderStyle = GridBorderStyle.None;
GridPrintDocument pd = new GridPrintDocument(gridControl1, true);
PrintPreviewDialog dlg = new PrintPreviewDialog() ;
dlg.Document = pd;
((Form)dlg).WindowState = FormWindowState.Maximized;
dlg.ShowDialog();
grid.Properties.BlackWhite = false;
grid.Properties.DisplayHorzLines = true;
grid.Properties.DisplayVertLines = true;
grid.DefaultGridBorderStyle = border;
grid.EndUpdate();
this.grid.BaseStylesMap["Standard"].StyleInfo.TextColor = Color.Red;
this.gridControl1.BaseStylesMap["Row Header"].StyleInfo.CellType = "Static";
which makes the row headers static cells instead of header cells.
grid.Properties.PrintFrame = false;
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.