Home Forums WinForms controls Xceed Grid for WinForms Single Row Reports Reply To: Single Row Reports

User (Old forums)
Post count: 23064

The only solution we see for this is to create a group for every DataRow, which groups do not have a GroupManagerRow, and set the PageBreak property on the GroupReportStyle.

private void Form1_Load( object sender, EventArgs e )
Group group1 = new Group( “CategoryID” );
group1.ReportStyle.PageBreak = PageBreak.After;
group1.SideMargin.Visible = false;
gridControl1.GroupTemplates.Add( group1 );

private void winButton1_Click( object sender, EventArgs e )
Report report = new Report( gridControl1 );
report.PrintPreview( );

Imported from legacy forums. Posted by André (had 2984 views)