Version

CellExportError Event

Occurs when exporting a value to a cell results in an error.
Syntax
'Declaration
 
Public Event CellExportError As EventHandler(Of CellExportErrorEventArgs)
public event EventHandler<CellExportErrorEventArgs> CellExportError
Event Data

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

PropertyDescription
CurrentColumnIndex (Inherited from Infragistics.Win.UltraWinGrid.ExcelExport.ExcelExportEventArgs)Zero-based index of current exporting column in excel worksheet.
CurrentOutlineLevel (Inherited from Infragistics.Win.UltraWinGrid.ExcelExport.ExcelExportEventArgs)Current outline level used for grouping.
CurrentRowIndex (Inherited from Infragistics.Win.UltraWinGrid.ExcelExport.ExcelExportEventArgs)Zero-based index of current exporting row in excel worksheet.
CurrentWorksheet (Inherited from Infragistics.Win.UltraWinGrid.ExcelExport.ExcelExportEventArgs)Current exporting worksheet.
Exception The exception that occurred when attempting to export the grid cell value to the worksheet cell.
GridColumn Associated grid column.
GridRow Grid row containing the cell.
ThrowException Indicates whether or not to re-throw the exception.
Value Grid cell value.
Workbook (Inherited from Infragistics.Win.UltraWinGrid.ExcelExport.ExcelExportEventArgs)Exporting workbook.
Remarks

The GridRow argument returns a reference to a grid row containing the cell.

The GridColumn argument returns a reference to associated grid column.

The Value argument returns a grid cell value.

Additionaly this event has Workbook, CurrentWorksheet, CurrentRowIndex, CurrentColumnIndex, CurrentOutlineLevel arguments inherited from ExcelExportEventArgs.

This event is fired when exporting a value to a cell causes an exception. This can happen if the cell value violates some Excel constraints. For example, if a cell contains more than 32767 characters, Excel will not allow it. This event gives you the opportunity to handle the exception and decide how to handle it.

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