Back to Devexpress

DataGridView.ReduceHeightToContent Property

maui-devexpress-dot-maui-dot-datagrid-dot-datagridview-ca05a0d1.md

latest1.2 KB
Original Source

DataGridView.ReduceHeightToContent Property

Gets or sets whether the grid reduces its height to occupy the minimum space needed for its data rows. This is a bindable property.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.dll

NuGet Package : DevExpress.Maui.DataGrid

Declaration

csharp
public bool ReduceHeightToContent { get; set; }

Property Value

TypeDescription
Boolean

true if the grid size is reduced to fit its content; otherwise, false.

|

Remarks

This property can be useful when grid content size is less than the size of the available space (parent container or screen).

The ReduceHeightToContent option does not take into account the summary panel and does not reduce the height to a value smaller than the parent page’s size.

See Also

DataGridView Class

DataGridView Members

DevExpress.Maui.DataGrid Namespace