Version

UseTypeConverterToConvertValue Property

Specifies whether the embeddable editors should use underlying TypeConverters for converting data values. Default is False.
Syntax
'Declaration
 
Public Shared Property UseTypeConverterToConvertValue As Boolean
public static bool UseTypeConverterToConvertValue {get; set;}
Remarks

By default embeddable editors do not use type converters to convert values. Setting this property to True will convert the values using underlying type converters.

This will affect all the embeddable editor owners including standalone editor controls and embeddable editor owner controls like UltraGrid, UltraWinTree etc... For example the cells in UltraGrid will display values converted using underlying type converter. If the underlying field (property descriptor associated with the column) in the data source has a type converter then it will be used. Otherwise the type converter of the data type will be used.

Also note that type conversions done using ValueConstraint's ValueToDataValue(Object,Type,IFormatProvider,String,TypeConverterInfo) method and EmbeddableEditorBase' EmbeddableEditorBase.ValueToDataValue methods will be affected by this property as well.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also