ClassRadDataConverter
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
Instance
Gets the instance.
Declaration
public static RadDataConverter Instance { get; }
Property Value
The instance.
Methods
EqualsNullValue(object, IDataConversionInfoProvider)
Equalses the null value.
Declaration
public bool EqualsNullValue(object value, IDataConversionInfoProvider dataColumn)
Parameters
value
The value.
dataColumn
The data column.
Returns
Format(object, Type, IDataConversionInfoProvider)
Gets the value of the cell as formatted for display.
Declaration
public object Format(object value, Type targetType, IDataConversionInfoProvider converstionInfoProvider)
Parameters
value
The value to be formatted.
targetType
The Type that value should be converted for.
converstionInfoProvider
An instance of IDataConversionInfoProvider.
Returns
Returns the formatted value
Format(object, Type, bool, IDataConversionInfoProvider)
Gets the value of the cell as formatted for display.
Declaration
public object Format(object value, Type targetType, bool coerceNullValue, IDataConversionInfoProvider converstionInfoProvider)
Parameters
value
The value to be formatted.
targetType
The Type that value should be converted for.
coerceNullValue
If the value is null, the NullValue should be considered as result.
converstionInfoProvider
An instance of IDataConversionInfoProvider.
Returns
Returns the formatted value
Parse(IDataConversionInfoProvider, object)
Converts a value formatted for display to an actual cell value.
Declaration
public object Parse(IDataConversionInfoProvider converstionInfoProvider, object value)
Parameters
converstionInfoProvider
An instance of IDataConversionInfoProvider.
value
The value to be converted.
Returns
Returns the converted value
Parse(IDataConversionInfoProvider, object, CultureInfo)
Converts a value formatted for display to an actual cell value.
Declaration
public object Parse(IDataConversionInfoProvider converstionInfoProvider, object value, CultureInfo cultureInfo)
Parameters
converstionInfoProvider
An instance of IDataConversionInfoProvider.
value
The value to be converted.
cultureInfo
The CultureInfo object that will be used while parsing.
Returns
Returns the converted value
TryFormat(object, Type, IDataConversionInfoProvider, out object)
Formats a value for display to an actual cell value.
Declaration
public Exception TryFormat(object value, Type targetType, IDataConversionInfoProvider converstionInfoProvider, out object result)
Parameters
value
The value to be formatted.
targetType
The Type that value should be converted for.
converstionInfoProvider
An instance of IDataConversionInfoProvider.
result
The object instance that will hold the result.IDataConversionInfoProvider.
Returns
The generated exception if Parse has failed for some reason, null otherwise.
TryParse(IDataConversionInfoProvider, object, out object)
Converts a value formatted for display to an actual cell value.
Declaration
public Exception TryParse(IDataConversionInfoProvider converstionInfoProvider, object value, out object result)
Parameters
converstionInfoProvider
An instance of IDataConversionInfoProvider.
value
The value to be converted.
result
The object instance that will hold the result.IDataConversionInfoProvider.
Returns
The generated exception if Parse has failed for some reason, null otherwise.