New to Telerik UI for .NET MAUI? Start a free 30-day trial

.NET MAUI TreeDataGrid Render Mode

The .NET MAUI TreeDataGrid is rendered differently depending on the target platform—on Android and Windows, it uses the SkiaSharp library, and on iOS and MacCatalyst, it uses native elements by default.

With the RenderMode property you can enable SkiaSharp rendering on iOS and MacCatalyst:

  • RenderMode(DataGridRenderMode)—Defines how the content of the TreeDataGrid is rendered: using the default platform-specific rendering or SkiaSharp. The available options are:
    • Default—Sets the rendering mode of the TreeDataGrid content to the default. The default rendering mode is determined by the platform. On Android and WinUI, the DataGrid is rendered with SkiaSharp. On iOS and MacCatalyst, the TreeDataGrid is rendered with the iOS UILabel and UIView primitives.
    • SkiaSharp—SkiaSharp is used to render the TreeDataGrid on all platforms.

When using the SkiaSharp rendering mode, you can customize the rendering of each column through the CellRenderer property of the DataGridTextColumn. See SkiaSharp Cell Renderer for more details.

See Also

In this article