[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReport.LayoutAction

LayoutAction Property

LayoutAction

Gets or sets the custom action after the current record is rendered.

Declaration
[Browsable(false)]
public LayoutAction LayoutAction { get; set; }
Property Value
Type Description
LayoutAction
<code>GrapeCity.ActiveReports.LayoutAction.MoveLayout | GrapeCity.ActiveReports.LayoutAction.NextRecord | GrapeCity.ActiveReports.LayoutAction.PrintSection</code>

or GrapeCity.ActiveReports.LayoutAction.MoveLayout | GrapeCity.ActiveReports.LayoutAction.PrintSection

Remarks

Right now only NextRecord can be changed to duplicate rows like in the sample.

Examples
int counter=0;
private void Detail_Format(object sender, System.EventArgs eArgs)
{ //repeat each row two times
	counter = counter + 1;
	if (counter <= 2)
	{
		this.LayoutAction = GrapeCity.ActiveReports.LayoutAction.MoveLayout | GrapeCity.ActiveReports.LayoutAction.PrintSection;
	}
	else
	{
		this.LayoutAction = GrapeCity.ActiveReports.LayoutAction.MoveLayout | GrapeCity.ActiveReports.LayoutAction.NextRecord | GrapeCity.ActiveReports.LayoutAction.PrintSection;
		counter = 0;
	}
}