# .NET MAUI DataGrid Row Details Overview

The [Telerik UI for .NET MAUI DataGrid](https://www.telerik.com/maui-ui/documentation/controls/datagrid/overview) control is capable of presenting additional information through the Row Details functionality. The Row Details is a Data Template defined on the grid or row level and is used for displaying data without affecting the dimensions of the row and the cells within it.

![.NET MAUI DataGrid showing expanded row details content](https://www.telerik.com/maui-ui/documentation/assets/cf28aed80f1f0556c2ac7b7409701c17/datagrid-row-details.png)

To show the Row Details, you can use the following exposed options:

* The default `DataGridToggleRowDetailsColumn` column —Allows showing and hiding the row details for an item. For additional information, refer to the DataGrid [Toggle Row Details Column](https://www.telerik.com/maui-ui/documentation/controls/datagrid/columns/column-types/toggle-column)

* Programmatically through the `ExpandedRowDetails` collection—for example, expanding row details on selection. For this case you need a custom implementation.

Here is a sample implementation inside the DataGrid `SelectionChanged` event:

```C#
void dataGrid_SelectionChanged(System.Object sender, DataGridSelectionChangedEventArgs e)
{
    RadDataGrid dataGrid = sender as RadDataGrid;

    foreach (var item in e.AddedItems)
    {
        dataGrid.ExpandedRowDetails.Add(item);
    }
    foreach (var item in e.RemovedItems)
    {
        dataGrid.ExpandedRowDetails.Remove(item);
    }
}
```

The DataGrid exposes the following properties that control the row details functionality:

* `AreRowDetailsFrozen` (type `bool`)—The property indicates whether the row details keep their position during horizontal scroll.

* `ExpandedRowDetails` (type `IList`)—Defines the collection of items that have expanded row details.

* `CanUserExpandMultipleRowDetails` (type `bool`)—The property indicates whether multiple row details can be expanded.

> tip For an outline of all DataGrid features review the [.NET MAUI DataGrid Overview](https://www.telerik.com/maui-ui/documentation/controls/datagrid/overview) article.

## Next Steps

* [Row Details Template](https://www.telerik.com/maui-ui/documentation/controls/datagrid/row-details/row-details-template)

## See Also

* [.NET MAUI DataGrid Product Page](https://www.telerik.com/maui-ui/datagrid)
* [.NET MAUI DataGrid Forum Page](https://www.telerik.com/forums/maui?tagId=1801)
* [Telerik .NET MAUI Blogs](https://www.telerik.com/blogs/mobile-net-maui)
* [Telerik .NET MAUI Roadmap](https://www.telerik.com/support/whats-new/maui-ui/roadmap)
