TxtDocumentImporterOptions.ColumnTypes Property
Provides access to the object which enables you to specify the data types for columns in an imported document.
Namespace: DevExpress.XtraSpreadsheet.Import
Assembly: DevExpress.Spreadsheet.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Property Value
Type | Description |
---|---|
ColumnDataTypeCollection | A ColumnDataTypeCollection object that stores data format settings for columns in the imported document. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to ColumnTypes |
---|---|
WorkbookImportOptions |
|
Remarks
The ColumnTypes property allows you to define the data format for specific columns in the imported text file. This property gets access to the ColumnDataTypeCollection collection, which provides a mapping from a set of document columns to a set of column data formats. Use the ColumnDataTypeCollection.Item property to specify a data type for a particular column in the imported document. Note that the column data format settings are taken into account only if the TxtDocumentImporterOptions.ValueTypeDetectMode property is set to CsvValueTypeDetectMode.Advanced.