Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetReportDesigner.SetDetailSection(TRect,Integer) Method

Adds a detail section to the displayed report template.

#Declaration

Delphi
procedure SetDetailSection(const ABounds: TRect; ALevel: Integer = -1);

#Parameters

Name Type
ABounds TRect
ALevel Integer

#Remarks

Call this procedure to create a new detail section corresponding to the cell range whose size (in cells) and position (in row and column indexes) within the report template are passed as the ABounds parameter. The detail section normally contains report fields inserted as the report function arguments.

In the case of master-detail reports, you can pass the detail section level as the optional ALevel parameter. If the displayed report template already has the detail section at the same level, calling the SetDetailSection procedure changes its size and position according to the ABounds parameter value.

The resulting report document contains the detail section for which all rows or columns are repeated down or to the right, respectively, for each bound dataset record on the respective detail level. The actual direction of “unfolding” all the detail section in the built report depends on the Options.Orientation property value.

To allow end-users to define detail template sections, you can link the DetailSection and DetailLevel commands to UI elements in your application.

Note

If you use the dataset record grouping functionality, create the group header and footer sections only within a detail section with the matching detail level.

See Also