Querying record and display result in read only grid

Certified Associate Developer

I am querying one record and aggregating two fields name and hobbies.I want to display all the hobbies in a single cell for a name ,in a single row in the read only grid.For Example

Name Hobbies
Ram

Playing

dancing

cooking

Please help with this,how to achieve this example

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data