Skip to main content

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

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.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

[Browsable(false)]
public override ColumnDataTypeCollection ColumnTypes { get; }

#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
.Txt .ColumnTypes

#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.

See Also