AdapTable makes it easy to include grouped row information in Layouts; this is done via the RowGroupedColumns property that specifies which Column(s) should be grouped.
Grouped columns can be included in Layouts either at Design-Time through Predefined Config or at Run-Time via the Layout Wizard.
The Layout will also store the correct sorting for the Grouped Column (either the default sort or a Custom Sort - see Grouping Demo for more details)
Note: if you want the Layout to include details of which grouped rows are open, set the includeExpandedRowGroups property to true in Layout Options.
This is what we have done in this demo - we set the Layout to open at 'Janet Leverling / United Package'