# .NET MAUI TreeDataGrid Columns Cell Templates

This article describes how to extend the functionality of the columns in the [.NET MAUI TreeDataGrid](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/overview) and define custom content and edit templates using the `CellContentTemplate` and `CellEditTemplate` properties.

* `CellContentTemplate` (`DataTemplate`)—Defines the appearance of each cell associated with the concrete column. `CellContentTemplate` gives you the opportunity to wrap the text inside each DataGrid column. You can add a Label as a content of the Text, Template Column and wrap its text using the Label's `LineBreakMode` property.
* `CellContentTemplateSelector` (`DataTemplateSelector`)—Defines a `DataTemplateSelector` instance that may be used to retrieve dynamic data templates on a per-cell basis.
* `CellEditTemplate` (`DataTemplate`)—Defines the editor associated with the concrete column. The `CellEditTemplate` is displayed when the cell is in edit mode.

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

## See Also

* [Column Footers](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/columns/footer)
* [Column Resizing](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/columns/resizing)
* [Columns Width](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/columns/width)
* [Frozen Columns](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/columns/frozen-columns)
* [Columns Reordering](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/columns/reordering)
