Version

CellExporting Event

Occurs before a grid cell is exported to a report.
Syntax
'Declaration
 
Public Event CellExporting As EventHandler(Of CellExportingEventArgs)
public event EventHandler<CellExportingEventArgs> CellExporting
Event Data

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

PropertyDescription
CellValue Returns the grid cell value.
ExportValue (Inherited from Infragistics.Win.UltraWinGrid.WordWriter.TableCellExportingEventArgs)Returns or sets the value that will be exported to the report.
GridColumn Returns the Infragistics.Win.UltraWinGrid.UltraGridColumn which contains the cell being exported.
GridRow Returns the Infragistics.Win.UltraWinGrid.UltraGridRow containing the cell.
WordTableCellSettings (Inherited from Infragistics.Win.UltraWinGrid.WordWriter.TableCellExportingEventArgs)Returns or sets properties of the table cell in the Word document such as BackColor, Font, and VerticalAlignment;
Remarks

CellExportingEventArgs.GridRow returns the Infragistics.Win.UltraWinGrid.UltraGridRow containing the cell.

CellExportingEventArgs.GridColumn returns the associated Infragistics.Win.UltraWinGrid.UltraGridColumn.

This event fires for data cells only. It will not fire for header or summary cells. For header cells, use HeaderCellExporting. For summary cells, use SummaryCellExporting.

Use the Cancel argument to cancel the exporting of a cell.

Using these event arguments, it is possible to override the exporting of a cell and provide a custom export. Typically, this would be done by setting Cancel to True, and then adding content to the ReportCell.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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