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 |
---|---|---|
target |
Type | A Type object that specifies the data type for which the converter is obtained. |
column |
String | A string that is the name of the column in the target Data |
column |
Int32 | An integer that is the index of the column in the target Data |
#Returns
Type | Description |
---|---|
ICell |
An object that exposes the ICell |
#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.