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 Lookup
Declaration
public LookupValueConverter(GridViewComboBoxColumn column)
Parameters
Grid 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. The source data being passed to the target. |
System. The System. |
System. The data model. |
System. The culture of the conversion. |
Returns
System. 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. The target data being passed to the source. |
System. The System. |
System. Contains the row data context. |
System. The culture of the conversion. |
Returns
System. The value to be passed to the source object. |