The requested page is not available for the requested platform. You are viewing the content for Default platform.

XRTable.DeleteColumn(XRTableCell) Method

Deletes the column that contains the specified cell from the current table.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v19.1.dll


public void DeleteColumn(
    XRTableCell baseCell
Public Sub DeleteColumn(
    baseCell As XRTableCell


Name Type Description
baseCell XRTableCell

An XRTableCell object representing a table cell belonging to the column to be deleted.


Rows of an XRTable can have a different number of cells. It is possible that a row may not have any cells for a particular column. Individual cells can differ from each other by their width, and may not be aligned. This method deletes a column only from those table rows that contain cells whose left side is aligned with that of the cell passed as the parameter.

The cells located to the left of the column to be deleted will occupy the freed space.


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