ClassLookupValueConverter
Converts data member value to display value for the needs of lookup (ComboBox columns).
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class LookupValueConverter : IValueConverter
Inheritance: objectLookupValueConverter
Implements:
Constructors
LookupValueConverter(GridViewComboBoxColumn)
Initializes a new instance of the LookupValueConverter class.
Declaration
public LookupValueConverter(GridViewComboBoxColumn column)
Parameters
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
value
The source data being passed to the target.
targetType
The Type of data expected by the target dependency property.
parameter
The data model.
culture
The culture of the conversion.
Returns
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
value
The target data being passed to the source.
targetType
The Type of data expected by the source object.
parameter
Contains the row data context.
culture
The culture of the conversion.
Returns
The value to be passed to the source object.