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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid Grouping Control printing

Thread ID:

Created:

Updated:

Platform:

Replies:

21345 Nov 8,2004 01:59 PM UTC Nov 8,2004 03:38 PM UTC Windows Forms 1
loading
Tags: GridControl
Gordon Rhea
Asked On November 8, 2004 01:59 PM UTC

Hi, I was trying to use the GridPrintDocument to print a grid grouping control and got an error stating " Value of type ''Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl'' cannot be converted to ''Syncfusion.Windows.Forms.Grid.GridControlBase''." Is there a way to get the Grid Grouping Control to print? Thanks, Gordon

Administrator [Syncfusion]
Replied On November 8, 2004 03:38 PM UTC

Try printing the gridGroupingControl1.TableControl. (Make sure you are using 2.1.0.9 though.)
private void button1_Click(object sender, System.EventArgs e)
{
GridPrintDocument pd = new GridPrintDocument(this.gridGroupingControl1.TableControl, true);
PrintPreviewDialog ppv = new PrintPreviewDialog();
ppv.Document = pd;
ppv.ShowDialog();
}

CONFIRMATION

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.

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

;