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

DataTableExporter.GetConverter(Type, String, Int32) Method

Obtains the converter used by the DataTableExporter for the specified column.

Namespace: DevExpress.Spreadsheet.Export

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

public virtual ICellValueToColumnTypeConverter GetConverter(
    Type targetType,
    string columnName,
    int columnIndexInDataTable
)

#Parameters

Name Type Description
targetType Type

A Type object that specifies the data type for which the converter is obtained.

columnName String

A string that is the name of the column in the target DataTable.

columnIndexInDataTable Int32

An integer that is the index of the column in the target DataTable.

#Returns

Type Description
ICellValueToColumnTypeConverter

An object that exposes the ICellValueToColumnTypeConverter interface.

#Remarks

The GetConverter method enables you to get the converter for the specified column. Note that to specify the column, you should provide the column name and the column index in the DataTable.

A custom converter for a column can be obtained from the DataTableExportOptions.CustomConverters dictionary using an indexer of the string type.

See Also