Version

CellExporting Event (WebDocumentExporter)

Fires before a cell is exported. This event can be cancelled to stop the cell being exported.
Syntax
'Declaration
 
Public Event CellExporting As EventHandler(Of DocumentCellExportingEventArgs)
Event Data

The event handler receives an argument of type DocumentCellExportingEventArgs containing data related to this event. The following DocumentCellExportingEventArgs properties provide information specific to this event.

PropertyDescription
Cancel Use to cancel the export of the cell.
ExportValue The value that will be exported to the cell in the report.
GridCell (Inherited from Infragistics.Web.UI.GridControls.BaseExportCellEventArgs)The grid cell object that is currently being exported.
IsFooterCell (Inherited from Infragistics.Web.UI.GridControls.BaseExportCellEventArgs)Returns true if this cell is in the grid footer.
IsHeaderCell (Inherited from Infragistics.Web.UI.GridControls.BaseExportCellEventArgs)Returns true if this cell is in the grid header.
IsSummaryCell (Inherited from Infragistics.Web.UI.GridControls.BaseExportCellEventArgs)Returns true if this cell holds a summary for the grid.
ReportCellElement (Inherited from Infragistics.Web.UI.GridControls.DocumentCellExportedEventArgs)The cell object in the report created to display the grid cell object.
Summary (Inherited from Infragistics.Web.UI.GridControls.BaseExportCellEventArgs)Returns the summary for the summary cell, if there is one.
Remarks

Use this to customize the way the cell is exported.

Set the CellExportingEventArgs.ExportValue event argument property to change the value of the exported cell. The value can be set to any type of object and the result of the ToString() method will be displayed in the cell. If ExportValue isn't set, the cell's formatted text will be displayed instead.

Use the CellExportedEventArgs.ReportCell property to customize the contents of the cell. You can use this to add new items to the exported cell or to completely override the way that the cell exports. If you want to completely override the cell's rendering, set the CellExportingEventArgs.Cancel property to true to cancel the default export logic.

Styling set on the % CellExportedEventArgs .GridCell% event argument property won't be applied to the exported cell. Apply any style changes that you want to make directly to the ReportCell.

This event can be cancelled by setting the CellExportingEventArgs.Cancel property of the event argument to true. When the event is cancelled, the logic to export the contents of the cell won't be run but the cell element itself will still be created.

This event will only be fired for data cells in the grid. Handle the HeaderCellExporting and FooterCellExporting events for header and footer cells.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also