Class RadDataConverter
This class is responsible for conversion of data between RadGridView and its data source
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
RadDataConverter
The instance. |
Methods
EqualsNullValue(Object, IDataConversionInfoProvider)
Equalses the null value.
Declaration
public bool EqualsNullValue(object value, IDataConversionInfoProvider dataColumn)
Parameters
System.Object
value
The value. |
IDataConversionInfoProvider
dataColumn
The data column. |
Returns
System.Boolean
|
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.Object
value
The value to be formatted. |
System.Type
targetType
The System.Type that value should be converted for. |
System.Boolean
coerceNullValue
If the value is null, the NullValue should be considered as result. |
IDataConversionInfoProvider
converstionInfoProvider
An instance of IDataConversionInfoProvider. |
Returns
System.Object
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.Object
value
The value to be formatted. |
System.Type
targetType
The System.Type that value should be converted for. |
IDataConversionInfoProvider
converstionInfoProvider
An instance of IDataConversionInfoProvider. |
Returns
System.Object
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
IDataConversionInfoProvider
converstionInfoProvider
An instance of IDataConversionInfoProvider. |
System.Object
value
The value to be converted. |
Returns
System.Object
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
IDataConversionInfoProvider
converstionInfoProvider
An instance of IDataConversionInfoProvider. |
System.Object
value
The value to be converted. |
System.Globalization.CultureInfo
cultureInfo
The System.Globalization.CultureInfo object that will be used while parsing. |
Returns
System.Object
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.Object
value
The value to be formatted. |
System.Type
targetType
The System.Type that value should be converted for. |
IDataConversionInfoProvider
converstionInfoProvider
An instance of IDataConversionInfoProvider. |
System.Object
result
The object instance that will hold the result.IDataConversionInfoProvider. |
Returns
System.Exception
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
IDataConversionInfoProvider
converstionInfoProvider
An instance of IDataConversionInfoProvider. |
System.Object
value
The value to be converted. |
System.Object
result
The object instance that will hold the result.IDataConversionInfoProvider. |
Returns
System.Exception
The generated exception if Parse has failed for some reason, null otherwise. |