How can we group rows in Readonly grid
Discussion posts and replies are publicly visible
Make use of aggregation in the queryRecordType(). You can use a!aggregationFields() when defining the fields for querying the record.