Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

XRCrossTabCell.RowAutoHeightMode Property

Gets or sets how the cell’s height changes to fit its content.

Namespace: DevExpress.XtraReports.UI.CrossTab

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

[DefaultValue(AutoSizeMode.None)]
[SRCategory(ReportStringId.CatBehavior)]
public AutoSizeMode RowAutoHeightMode { get; set; }

#Property Value

Type Default Description
AutoSizeMode None

A value that specifies how the cell’s height changes to fit its content.

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.

#Remarks

Use this property to change the row height to fit the content of all its cells. If you change this property for one cell, this value applies to all the cells in the row.

You can specify this property’s value in the Properties window.

  • None

    All cells have the height specified in the Cross Tab layout.

  • GrowOnly

    The row height can increase to fit the content of all cells.

  • ShrinkOnly

    The row height can decrease to fit the content of all cells.

  • ShrinkAndGrow

    The row height can increase or decrease to fit the content of all cells.

#Limitations

  • This property is not available if a cell spans two or more rows.
  • Column widths are changed per the cells’ ColumnAutoWidthMode property values before row heights.
See Also