RadDataConverter
This class is responsible for conversion of data between RadGridView and its data source
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class RadDataConverter
Inheritance: objectRadDataConverter
Properties
Gets the instance.
public static RadDataConverter Instance { get; }
The instance.
Methods
Equalses the null value.
public bool EqualsNullValue(object value, IDataConversionInfoProvider dataColumn)
The value.
dataColumnIDataConversionInfoProviderThe data column.
Returns:Gets the value of the cell as formatted for display.
public object Format(object value, Type targetType, bool coerceNullValue, IDataConversionInfoProvider converstionInfoProvider)
The value to be formatted.
targetTypeTypeThe Type that value should be converted for.
coerceNullValueboolIf the value is null, the NullValue should be considered as result.
converstionInfoProviderIDataConversionInfoProviderAn instance of IDataConversionInfoProvider.
Returns:Returns the formatted value
Gets the value of the cell as formatted for display.
public object Format(object value, Type targetType, IDataConversionInfoProvider converstionInfoProvider)
The value to be formatted.
targetTypeTypeThe Type that value should be converted for.
converstionInfoProviderIDataConversionInfoProviderAn instance of IDataConversionInfoProvider.
Returns:Returns the formatted value
Converts a value formatted for display to an actual cell value.
public object Parse(IDataConversionInfoProvider converstionInfoProvider, object value, CultureInfo cultureInfo)
An instance of IDataConversionInfoProvider.
valueobjectThe value to be converted.
cultureInfoCultureInfoThe CultureInfo object that will be used while parsing.
Returns:Returns the converted value
Converts a value formatted for display to an actual cell value.
public object Parse(IDataConversionInfoProvider converstionInfoProvider, object value)
An instance of IDataConversionInfoProvider.
valueobjectThe value to be converted.
Returns:Returns the converted value
Formats a value for display to an actual cell value.
public Exception TryFormat(object value, Type targetType, IDataConversionInfoProvider converstionInfoProvider, out object result)
The value to be formatted.
targetTypeTypeThe Type that value should be converted for.
converstionInfoProviderIDataConversionInfoProviderAn instance of IDataConversionInfoProvider.
resultobjectThe object instance that will hold the result.IDataConversionInfoProvider.
Returns:The generated exception if Parse has failed for some reason, null otherwise.
Converts a value formatted for display to an actual cell value.
public Exception TryParse(IDataConversionInfoProvider converstionInfoProvider, object value, out object result)
An instance of IDataConversionInfoProvider.
valueobjectThe value to be converted.
resultobjectThe object instance that will hold the result.IDataConversionInfoProvider.
Returns:The generated exception if Parse has failed for some reason, null otherwise.