Class RadDataConverter
This class is responsible for conversion of data between Rad
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class RadDataConverter
Properties
Instance
Gets the instance.
Declaration
public static RadDataConverter Instance { get; }
Property Value
Rad The instance. |
Methods
EqualsNullValue(Object, IDataConversionInfoProvider)
Equalses the null value.
Declaration
public bool EqualsNullValue(object value, IDataConversionInfoProvider dataColumn)
Parameters
System. The value. |
IData The data column. |
Returns
System.
|
Format(Object, Type, Boolean, IDataConversionInfoProvider)
Gets the value of the cell as formatted for display.
Declaration
public object Format(object value, Type targetType, bool coerceNullValue, IDataConversionInfoProvider converstionInfoProvider)
Parameters
System. The value to be formatted. |
System. The System. |
System. If the value is null, the Null |
IData An instance of IData |
Returns
System. Returns the formatted value |
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
System. The value to be formatted. |
System. The System. |
IData An instance of IData |
Returns
System. 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
IData An instance of IData |
System. The value to be converted. |
Returns
System. 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
IData An instance of IData |
System. The value to be converted. |
System. The System. |
Returns
System. 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
System. The value to be formatted. |
System. The System. |
IData An instance of IData |
System. The object instance that will hold the result.IData |
Returns
System. 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
IData An instance of IData |
System. The value to be converted. |
System. The object instance that will hold the result.IData |
Returns
System. The generated exception if Parse has failed for some reason, null otherwise. |