ClassInvalidDataTypeException
Thrown when a worksheet column contains mixed data types that cannot be reconciled during DataTable export with type inference enabled.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.FormatProviders
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class InvalidDataTypeException : Exception, ISerializable
Inheritance: objectExceptionInvalidDataTypeException
Implements:
Inherited Members
Constructors
InvalidDataTypeException(string, string, string, int, int)
Initializes a new instance of the InvalidDataTypeException class with details about the type conflict.
Declaration
public InvalidDataTypeException(string message, string expectedDataType, string currentDataType, int columnIndex, int rowIndex)
Parameters
message
The message that describes the error.
expectedDataType
The expected DataType.
currentDataType
The data type of the current cell.
columnIndex
The index of the column where the invalid data is.
rowIndex
The index of the row where the invalid data is.
Properties
ColumnIndex
Gets the zero-based column index where the type conflict occurred.
CurrentDataType
Gets the conflicting data type encountered in the cell.
ExpectedDataType
Gets the data type initially inferred for the column.