Skip to main content

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

XRTableCell.Row Property

Gets a parent row for the XRTableCell object.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

[Browsable(false)]
public XRTableRow Row { get; }

#Property Value

Type Description
XRTableRow

An object of the XRTableRow class.

#Example

The following method sets some of the properties of cells in a table row (whose cells are accessed via the XRTableRow.Cells collection). The table row is determined via the XRTableCell.Row property of the cell, passed as a parameter to the method.

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

public void SetTextInRow(XRTableCell baseCell) {

    foreach(XRTableCell cell in baseCell.Row.Cells) {

        // Set the background color for each cell in a row.
        cell.BackColor = Color.LightCyan;

        // Set the text for each cell in a row.
        cell.Text = "Test";

        // Align the text in the cell to the center.
        cell.TextAlignment = TextAlignment.MiddleCenter;
    }
}
See Also