Back to Devexpress

XRCrossTabCell.ColumnAutoWidthMode Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-crosstab-dot-xrcrosstabcell-1944cd48.md

latest2.5 KB
Original Source

XRCrossTabCell.ColumnAutoWidthMode Property

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

Declaration

csharp
[DefaultValue(AutoSizeMode.None)]
[SRCategory(ReportStringId.CatBehavior)]
public AutoSizeMode ColumnAutoWidthMode { get; set; }
vb
<DefaultValue(AutoSizeMode.None)>
<SRCategory(ReportStringId.CatBehavior)>
Public Property ColumnAutoWidthMode As AutoSizeMode

Property Value

TypeDefaultDescription
AutoSizeModeNone

The size mode.

|

Available values:

NameDescription
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.

|

Remarks

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

  • This property is not available if a cell spans two or more columns.
  • Set the RowAutoHeightMode property value to specify how row height changes to fit cell contents. Row height changes after column width.

See Also

XRCrossTabCell Class

XRCrossTabCell Members

DevExpress.XtraReports.UI.CrossTab Namespace