LookupValueConverter
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
Initializes a new instance of the LookupValueConverter class.
public LookupValueConverter(GridViewComboBoxColumn column)
The column.
Methods
Converts the data member value to the display member value for the lookup column.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The source data being passed to the target.
targetTypeTypeThe Type of data expected by the target dependency property.
parameterobjectThe data model.
cultureCultureInfoThe culture of the conversion.
Returns:The converted value to be displayed in the lookup column.
Converts the display member value to the data member value for the lookup column.
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
The target data being passed to the source.
targetTypeTypeThe Type of data expected by the source object.
parameterobjectContains the row data context.
cultureCultureInfoThe culture of the conversion.
Returns:The value to be passed to the source object.