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

.NET MAUI DataGrid Row Height

Telerik UI for .NET MAUI DataGrid provides the option to manually set the grid row height, so you have full control over the way the content is accommodated inside the grid cells. By default row height is calculated according to the cells content.

Apply RowHeight property of type double to the DataGrid instance to specify the row height:

<telerik:RadDataGrid x:Name="dataGrid"
                            ItemsSource="{Binding Source}" />

Here is the difference in the way DataGrid is rendered with and without RowHeight specifically set:

.NET MAUI DataGrid RowHeight

Take a look at the CellContentStyle topic for additional customization options related to positioning the text inside the cells, such as text margin and text alignment as this can also affect the overall row height.

See Also

In this article
Not finding the help you need?