Class LookupValueConverter
Converts data member value to display value for the needs of lookup (ComboBox columns).
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.GridView.dll
Syntax
public class LookupValueConverter : Object, IValueConverter
Constructors
LookupValueConverter(GridViewComboBoxColumn)
Initializes a new instance of the LookupValueConverter class.
Declaration
public LookupValueConverter(GridViewComboBoxColumn column)
Parameters
GridViewComboBoxColumn
column
The column. |
Methods
Convert(Object, Type, Object, CultureInfo)
Converts the data member value to the display member value for the lookup column.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
The source data being passed to the target. |
System.Type
targetType
The System.Type of data expected by the target dependency property. |
System.Object
parameter
The data model. |
System.Globalization.CultureInfo
culture
The culture of the conversion. |
Returns
System.Object
The converted value to be displayed in the lookup column. |
ConvertBack(Object, Type, Object, CultureInfo)
Converts the display member value to the data member value for the lookup column.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
The target data being passed to the source. |
System.Type
targetType
The System.Type of data expected by the source object. |
System.Object
parameter
Contains the row data context. |
System.Globalization.CultureInfo
culture
The culture of the conversion. |
Returns
System.Object
The value to be passed to the source object. |