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

ICellValueToColumnTypeConverter.Convert(Cell, CellValue, Type, out Object) Method

Converts a cell value to the data stored in the DataTable.

Namespace: DevExpress.Spreadsheet.Export

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

ConversionResult Convert(
    Cell readOnlyCell,
    CellValue cellValue,
    Type dataColumnType,
    out object result
)

#Parameters

Name Type Description
readOnlyCell Cell

A Cell object that is the worksheet cell containing the source value.

cellValue CellValue

A CellValue object that is the cell value to be converted.

dataColumnType Type

A Type object that indicates the type of data stored in the column.

result Object

An object that is the result of conversion.

#Returns

Type Description
ConversionResult

A ConversionResult enumeration that indicates whether the conversion is successful.

#Remarks

For a use example, please review the How to: Use a Custom Converter for Export to a DataTable document.

See Also