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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Print grid without row/col header

Thread ID:





1263 Oct 9,2002 08:53 AM UTC Oct 10,2002 05:58 AM UTC WinForms 1
Tags: GridControl
Raphael Eschmann
Asked On October 9, 2002 08:53 AM UTC

Hi, I would like to print the grid without the col header and the row header. I try this: grid1.Properties.PrintColHeader = False grid1.Properties.PrintRowHeader = False but when I preview or print the grid, it's with the header. What's wrong? Thanks

Administrator [Syncfusion]
Replied On October 10, 2002 05:58 AM UTC

These properties appear to be broken. I have logged this in our defect tracking system (ID 44). From your Direc-Trac home page, you can track this defect, and sign up to receive an email when it is corrected in a patch or release. In the meantime, you can avoid printing the headers by temporarily hiding them. this.gridControl1.BeginUpdate(); //may or may not want this this.gridControl1.Cols.Hidden[0] = true; this.gridControl1.Rows.Hidden[0] = true; GridPrintDocument pd = new GridPrintDocument(this.gridControl1, true); PrintPreviewDialog dlg = new PrintPreviewDialog() ; dlg.Document = pd; dlg.ShowDialog(); this.gridControl1.Cols.Hidden[0] = false; this.gridControl1.Rows.Hidden[0] = false; this.gridControl1.EndUpdate(false); //may or may not want this


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