Skip to main content

OptionsTableLayoutItem.RowIndex Property

Gets or sets the index of the row in which the current layout item is displayed.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[Browsable(true)]
[DefaultValue(0)]
[XtraSerializableProperty]
public virtual int RowIndex { get; set; }

Property Value

Type Default Description
Int32 0

The zero-based index that specifies the layout item’s row position within the table layout.

Property Paths

You can access this nested property as listed below:

Object Type Path to RowIndex
BaseLayoutItem

Remarks

Layout items are positioned within the table layout according to their RowIndex and OptionsTableLayoutItem.ColumnIndex properties. The OptionsTableLayoutItem.RowSpan and OptionsTableLayoutItem.ColumnSpan settings define the number of columns and rows occupied by a specific layout item.

The following image demonstrates the table layout that consists of five items arranged in three columns and three rows.

LayoutControl_TableLayoutExampleDetails

Note

If you specify the same target table cells for two or more layout items, these items will overlap.

You cannot set the RowIndex property to a value that is less than 0 or exceeds the number of rows within the table layout.

See Also