Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TableView.BestFitArea Property

Gets or sets which interface elements are taken into account when calculating optimal width for columns. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.1.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public BestFitArea BestFitArea { get; set; }

#Property Value

Type Description
BestFitArea

A BestFitArea enumeration value that specifies interface elements that are taken into account when calculating optimal width for columns.

Available values:

Name Description
None

Nothing should be taken into account when adjusting the column width.

Header

A column header’s text should be taken into account when adjusting the column width.

Rows

Grid rows’ values should be taken into account when adjusting the column width.

TotalSummary

The total summary’s text should be taken into account when adjusting the column width.

GroupSummary

The group summary’s text should be taken into account when adjusting the column width.

GroupFooter

The group footer’s text should be taken into account when adjusting the column width.

All

All elements of a column (row cells, header, total summary) should be taken into account when adjusting the column width.

#Remarks

Refer to the Best Fit topic to learn more.

See Also