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
Initializes a new instance of the InvalidDataTypeException class with details about the type conflict.
public InvalidDataTypeException(string message, string expectedDataType, string currentDataType, int columnIndex, int rowIndex)
The message that describes the error.
expectedDataTypestringThe expected DataType.
currentDataTypestringThe data type of the current cell.
columnIndexintThe index of the column where the invalid data is.
rowIndexintThe index of the row where the invalid data is.
Properties
Gets the zero-based column index where the type conflict occurred.
public int ColumnIndex { get; }
Gets the conflicting data type encountered in the cell.
public string CurrentDataType { get; }
Gets the data type initially inferred for the column.
public string ExpectedDataType { get; }