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
close icon

Grid Grouping Control printing

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

1 Reply

AD Administrator Syncfusion Team 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();
}

Loader.
Live Chat Icon For mobile
Up arrow icon