Display Record Data in a Table

To display rows and columns of record data, use the lightning-datatable component. To display data in a table with a structural hierarchy, such as account records and associated contacts, use the lightning-tree-grid component.