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

Suppress column when printing

Thread ID:





3547 Mar 27,2003 04:06 PM UTC Mar 28,2003 09:46 AM UTC WinForms 2
Tags: GridControl
Sean Greer
Asked On March 27, 2003 04:06 PM UTC

Any idea how I can suppress the printing of a column? I have a push button column that is used to open another form for editing the underlying data source, but I don't want to render it when printing. Can this be done? Regards, Sean

Administrator [Syncfusion]
Replied On March 27, 2003 11:13 PM UTC

You can handle the QueryColWidth event, and if you are printing, return e.Size = 0 and e.Handled = true for this column (e.Index). To decide whether you are printing, you can add a Form level flag and set it before you start the print.

Administrator [Syncfusion]
Replied On March 28, 2003 09:46 AM UTC

To test whether the grid is printing or not, use the PrintingMode property. So, you do not have to set your own flag.


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