Class InvalidDataTypeException
Thrown when a worksheet column contains mixed data types that cannot be reconciled during DataTable export with type inference enabled.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.FormatProviders
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class InvalidDataTypeException : Exception, ISerializable, _Exception
Constructors
InvalidDataTypeException(String, String, String, Int32, Int32)
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
|
System.String
message
The message that describes the error. |
|
System.String
expectedDataType
The expected DataType. |
|
System.String
currentDataType
The data type of the current cell. |
|
System.Int32
columnIndex
The index of the column where the invalid data is. |
|
System.Int32
rowIndex
The index of the row where the invalid data is. |
Properties
ColumnIndex
Gets the zero-based column index where the type conflict occurred.
Declaration
public int ColumnIndex { get; }
Property Value
|
System.Int32
|
CurrentDataType
Gets the conflicting data type encountered in the cell.
Declaration
public string CurrentDataType { get; }
Property Value
|
System.String
|
ExpectedDataType
Gets the data type initially inferred for the column.
Declaration
public string ExpectedDataType { get; }
Property Value
|
System.String
|
RowIndex
Gets the zero-based row index where the type conflict occurred.
Declaration
public int RowIndex { get; }
Property Value
|
System.Int32
|