Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ISpreadsheetComponent.InvalidFormatException Event

Fires when the supplied data could not be recognized as data in the assumed format for import.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

event InvalidFormatExceptionEventHandler InvalidFormatException

#Event Data

The InvalidFormatException event's data class is SpreadsheetInvalidFormatExceptionEventArgs. The following properties provide information specific to this event:

Property Description
Exception Gets the exception which triggers the InvalidFormatException event.
SourceUri Gets the source location for the document which triggers the InvalidFormatException event.

#Remarks

If the data for import is in an incorrect format, import is silently canceled if the InvalidFormatException is not handled. If you subscribe to the InvalidFormatException event, the event is fired in an attempt to load incorrect data, so you can provide custom logic in this situation.

See Also