New to Telerik UI for .NET MAUI? Start a free 30-day trial
.NET MAUI TreeDataGrid Columns Width
This article describes how to set a width to the .NET MAUI TreeDataGrid column using the SizeMode
and Width
properties.
SizeMode
(DataGridColumnSizeMode
)—Defines theDataGridColumnSizeMode
value that controls how the column and its associated cells are sized horizontally.Fixed
—The column has a fixed width as defined by itsWidth
property.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 theSizeMode
property is set toDataGridColumnSizeMode.Fixed
.MinimumWidth
(double
)—Specifies the minimum width of a column. This property is applicable when settingSizeMode
column property toFixed
. WhenMinimumWidth
is 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.