Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

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

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