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

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.2.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