c# - How to keep a GroupHeader together with a DetailBand in a multicolumn XtraReport? -


we avoid group header appearing alone @ bottom of column in 2 column report.

if report did not use multi-columns use keep option on group header ensure @ least 1 detail row below. when 2 column report not seem work.

in test below, group header appears last item in column.

any ideas on how can work around issue?

we have having issue devexpress-12.2.7.

[testmethod] public void showissue() {      datatable data = new datatable();      data.merge( createdata( "group1" ) );     data.merge( createdata( "group2" ) );     data.merge( createdata( "group3" ) );      xtrareport result = new xtrareport();     groupheaderband groupheaderband = new groupheaderband { height = 20, keeptogether = true };     groupheaderband.groupfields.addrange( new[] { new groupfield( "grouping", xrcolumnsortorder.ascending ) } );     groupheaderband.controls.add( new xrlabel { text = "[grouping]" } );      detailband detailband = new detailband { keeptogether = true, height = 20 };     detailband.multicolumn.columncount = 2;     detailband.multicolumn.mode = multicolumnmode.usecolumncount;     detailband.controls.add( new xrlabel { text = "[value]" } );      result.bands.add( detailband );     result.bands.add( groupheaderband );     result.datasource = data;      result.showdesignerdialog(); }  datatable createdata( string grouping ) {     datatable result = new datatable();     result.columns.add( "grouping", typeof( string ) );     result.columns.add( "value", typeof( int ) );      for( int = 0; < 37; i++ ) {         result.rows.add( new object[] { grouping, } );     }     return result; } 


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -