Back to Devexpress

ColumnBase.BestFitArea Property

wpf-devexpress-dot-xpf-dot-grid-dot-columnbase-7d4c683b.md

latest2.1 KB
Original Source

ColumnBase.BestFitArea Property

Gets or sets which interface elements are taken into account when calculating the column’s optimal width.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public BestFitArea BestFitArea { get; set; }
vb
Public Property BestFitArea As BestFitArea

Property Value

TypeDescription
BestFitArea

A BestFitArea enumeration value that specifies interface elements that are taken into account when calculating the column’s optimal width.

|

Available values:

NameDescription
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

ColumnBase Class

ColumnBase Members

DevExpress.Xpf.Grid Namespace