# .NET MAUI TreeDataGrid Empty Template

The [.NET MAUI TreeDataGrid](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/overview) control provides the ability to specify a template when the `ItemsSource` is null or collection is empty.

It exposes the following properties:

* `EmptyContentTemplate`(`DataTemplate`)—Defines the content of the view which is shown when in the view has no items.

* `EmptyContentDisplayMode`—Defines the modes for displaying empty content. The property has two modes:
  \- `ItemsSourceNull`—Displays the empty content view only when the `ItemsSource` is null.
  \- `ItemsSourceNullOrEmpty`—Displays the empty content view when `ItemsSource` is null or when the source is empty (has zero items).

> As the TreeDataGrid inherits from the DataGrid, for a runnable example with empty template scenario, see the [SDKBrowser Demo Application](https://www.telerik.com/maui-ui/documentation/demos-and-sample-apps/sdkbrowser-app) and go to **DataGrid > Empty Template** category.

## See Also

* [Filtering](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/filtering/overview)
* [Selection](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/selection)
