Skip to main content
A newer version of this page is available. .
Tab

GridViewDataColumn.CellRowSpan Property

Specifies the number of rows that a column (i.e., column header and data cells containing the column data) spans.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(1)]
public int CellRowSpan { get; set; }

Property Value

Type Default Description
Int32 1

An integer value that specifies the number of rows that the column spans.

Remarks

When data cell bands are used, the height of a grid header is equal to the maximum depth of the column hierarchy. By default, a column occupies one row; the deepest column (without child columns) occupies the remaining free space.

Use the CellRowSpan property to specify the number of rows that a column (i.e., column header and data cells containing the column data) spans.

Example 1

The maximum depth of columns hierarchy is equal to three (for the Address column). By default, the Photo column occupies one row, and the deepest child column (Price) occupies remaining free space, i.e., two rows.

CellRowSpan1

Example 2

In this example, the CellRowSpan property is set to 2 for Photo columns, therefore it occupies two rows.


<dx:GridViewDataImageColumn FieldName="PhotoUrl" Caption="Photo" CellRowSpan="2">

CellRowSpan2

See Also