--- title: "Row Details | Features" description: "Use ZingGrid to easily create expandable rows through the row details feature." url: https://www.zinggrid.com/docs/features/row-details --- ```text experiment_id: web-retrieval-v1 fixture_id: /docs/features/row-details.md mode: provenance representation: markdown origin_response_id: a6d6bb886adc56572596f86c7763da5d version: 2026-10-21 version_created_at_utc: 2026-10-21T20:42:35.700Z version_nonce: 98e5c181f619d5bdfd7740f90377b129 generated_at_utc: 2026-11-09T16:15:16.891Z response_nonce: 5b11e8eef01bb8aa3d5a3e23e78cd302 ``` # Row Details The row details feature allows you to easily add expandable rows to your grid. Inside the expandable section, you can add ZingGrid inside to have nested grids. This guide explains the different ways to enable row details. ## Row-Details-Renderer You can setup a function that returns the innerHTML of the row details section. To enable row details, use the `row-details-renderer` attribute and set it to the name of your renderer function. Note that we define which columns to display in the parent grid. Then in the renderer, we specify the index of the data we want to display in child grid. ```html ``` ```js let rowDetailsRenderer = (record, oDOMRowDetails) => { const nestedGrid = document.createElement('zing-grid'); nestedGrid.data = record.tests; return nestedGrid; }; ZingGrid.registerMethod(rowDetailsRenderer); ``` ### Row-Details-Renderer Grid Here is a complete grid with row-details using a renderer function: [Example code](https://app.zingsoft.com/demos/embed/WXLCYC8S) ## Row-Details-Template An alternative way to set the contents of the row details section is by using the `