xtrareports-devexpress-dot-xtrareports-dot-ui-dot-crosstab-dot-xrcrosstabcell-1944cd48.md
Specifies whether and how to change the cell’s width to fit its content.
Namespace : DevExpress.XtraReports.UI.CrossTab
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
[DefaultValue(AutoSizeMode.None)]
[SRCategory(ReportStringId.CatBehavior)]
public AutoSizeMode ColumnAutoWidthMode { get; set; }
<DefaultValue(AutoSizeMode.None)>
<SRCategory(ReportStringId.CatBehavior)>
Public Property ColumnAutoWidthMode As AutoSizeMode
| Type | Default | Description |
|---|---|---|
| AutoSizeMode | None |
The size mode.
|
Available values:
| Name | Description |
|---|---|
| None |
The control’s size remains unchanged.
| | GrowOnly |
The control’s size can be automatically increased to fit its content.
| | ShrinkOnly |
The control’s size can be automatically decreased to fit its content.
| | ShrinkAndGrow |
The control’s size can be automatically increased or decreased to fit its content.
|
Use the ColumnAutoWidthMode property to adjust the column width to fit values of all its cells. If you change this property value for one cell, this value applies to all the cells in the column.
At design time, you can set the ColumnAutoWidthMode property in a cell’s smart tag or in the Properties window.
None
GrowOnly
ShrinkOnly
ShrinkAndGrow
Note
See Also