A newer version of this page is available. Switch to the current version.

XRTable.InsertRowAbove(XRTableRow) Method

Inserts a row into the table above the given row.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll


public XRTableRow InsertRowAbove(
    XRTableRow baseRow
Public Function InsertRowAbove(
    baseRow As XRTableRow
) As XRTableRow


Name Type Description
baseRow XRTableRow

An XRTableRow object representing a row, above which a new row is inserted.


Type Description

An XRTableRow object inserted into the table.


The following example demonstrates how to create an XRTable control at runtime. To do this, the XRTable.CreateTable, XRTable.InsertRowBelow and XRTable.InsertRowAbove methods are used.

After performing the code below, a table with five rows and three columns should be created.

using System.Drawing;
using DevExpress.XtraReports.UI;
// ...

public XRTable CreateTable1() {
    // Create a table containing three rows and three columns.
    XRTable tab = XRTable.CreateTable(new Rectangle(10, 10, 300, 120), 3, 3);

    // Set the border width for all table cells at a time.
    tab.BorderWidth = 2;

    // Make the borders visible for all table cells.
    tab.Borders = DevExpress.XtraPrinting.BorderSide.All;

    // Insert a new row into the table above the first row.

    // Insert a new row into the table below the last row.

    return tab;
See Also