TMS FireMonkey Grid
Example 2 : Group demo

This demo's also demonstrates sorting in normal and grouped mode. Clicking on a column in group mode will sort the data specific to that group, resulting in a correct display of the sorted data.
To group grid data according to the demo use the following code below:
TMSFMXGrid1.SortData(1,sdAscending); TMSFMXGrid1.Options.Grouping.MergeHeader := true; TMSFMXGrid1.Options.Grouping.Summary := true; TMSFMXGrid1.Group(1); TMSFMXGrid1.GroupSum(6); TMSFMXGrid1.GroupAvg(5);
×