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

XRTableCell.PreviousCell Property

Gets the cell previous to the given cell in a table row.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll


public XRTableCell PreviousCell { get; }
Public ReadOnly Property PreviousCell As XRTableCell

Property Value

Type Description

An XRTableCell object representing the previous cell in a row.


If the index of the given cell has the lowest value in the collection of cells in the row, then the PreviousCell property returns null (Nothing in Visual Basic).


The following method deletes columns adjacent to the column containing the base cell. Access to the cells adjacent to the base cell is implemented via the XRTableCell.PreviousCell and XRTableCell.NextCell properties.

using DevExpress.XtraReports.UI;
// ...

public void DeleteAdjacentColumns(XRTable table, XRTableCell baseCell) {

   if(baseCell.PreviousCell != null)
      // Delete a column containing the cell that is previous to the base cell.

   if(baseCell.NextCell != null)
      // Delete a column containing the cell that is next to the base cell.
See Also