Skip to main content

CellValueToColumnTypeConverter.ConvertStringValues Property

Gets or sets whether an attempt is made to convert the text displayed in a worksheet cell to a value of the type indicated by the type of the destination column in the DataTable.

Namespace: DevExpress.Spreadsheet.Export

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

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

public bool ConvertStringValues { get; set; }

Property Value

Type Description
Boolean

true, to try convert the cell text to a value of the destination type; otherwise, false.

Remarks

If the ConvertStringValues property is set to true and an attempt to convert a cell text fails, the converter returns the ConversionResult.Error value. Subscribe to the DataTableExporter.CellValueConversionError event to handle the error and to prevent the exception from being thrown.

See Also