New to Telerik UI for .NET MAUI? Start a free 30-day trial
.NET MAUI TreeDataGrid Columns Width
Updated over 6 months ago
This article describes how to set a width to the .NET MAUI TreeDataGrid column using the SizeMode and Width properties.
SizeMode(DataGridColumnSizeMode)—Defines theDataGridColumnSizeModevalue that controls how the column and its associated cells are sized horizontally.Fixed—The column has a fixed width as defined by itsWidthproperty.Stretch—The column is stretched to the available width proportionally to its desired width.Auto—The columns is sized to its desired width. That is the maximum desired width of all associated cells.
Width(double)—Specifies the fixed width for the column. Applicable when theSizeModeproperty is set toDataGridColumnSizeMode.Fixed.MinimumWidth(double)—Specifies the minimum width of a column. This property is applicable when settingSizeModecolumn property toFixed. WhenMinimumWidthis set, you can not reduce the width of the column to a value lower than theMinimumWidth.ActualWidth(double): Gets the actual width of the column.