# .NET MAUI TreeDataGrid SkiaSharp Cell Renderer

When your [.NET MAUI TreeDataGrid](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/overview) is rendered with the SkiaSharp library, you can extend the functionality of a DataGrid column and render custom cell content.

* `CellRenderer`(`DataGridCellRenderer`)—Defines a renderer that allows custom rendering of cells when the TreeDataGrid is rendered with SkiaSharp. To use this in iOS and MacCatalyst, the `RadTreeDataGrid`.`RenderMode` needs to be set to `SkiaSharp`.

> Check the [Render Mode](https://www.telerik.com/maui-ui/documentation/controls/treedatagrid/render-mode) topic for more information on the TreeDataGrid SkiaSharp rendering.

The `DataGridCellRenderer` provides the following methods you can override to define any custom SkiaSharp content inside each cell:

* `MeasureContainer`—Returns the desired size for the current item in device independent pixels.
* `RenderContainer`—Renders any custom content for the current item. Invoke the base implementation of this method if you want to render the default render content.
* `RequestRender`—Makes a request for a render pass to be scheduled.
* `OnRenderStarted`—Marks the beginning of the rendering of the cells related to this renderer.
* `OnRenderCompleted`—Marks the end of the rendering of the cells related to this renderer.

## See Also

* [Render Mode](https://www.telerik.com/maui-ui/documentation/controls/datagrid/render-mode)
* [SkiaSharp GitHub](https://github.com/mono/SkiaSharp?#skiasharp)
* [SkiaSharp SKCanvas](https://learn.microsoft.com/en-us/dotnet/api/skiasharp.skcanvas)
