Class
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:

cs-api-definition
public class LookupValueConverter : IValueConverter

Inheritance: objectLookupValueConverter

Implements: IValueConverter

Constructors

LookupValueConverter(GridViewComboBoxColumn)

Initializes a new instance of the LookupValueConverter class.

Declaration

cs-api-definition
public LookupValueConverter(GridViewComboBoxColumn column)

Parameters

column

GridViewComboBoxColumn

The column.

Methods

Convert(object, Type, object, CultureInfo)

Converts the data member value to the display member value for the lookup column.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The source data being passed to the target.

targetType

Type

The Type of data expected by the target dependency property.

parameter

object

The data model.

culture

CultureInfo

The culture of the conversion.

Returns

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

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The target data being passed to the source.

targetType

Type

The Type of data expected by the source object.

parameter

object

Contains the row data context.

culture

CultureInfo

The culture of the conversion.

Returns

object

The value to be passed to the source object.