Class DisplayMemberConverter
Derived from IValueConverter which returns display text by reflection data based on the DisplayMemberPath and SelectedValuePath.
Inheritance
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.iOS.dll
Syntax
public class DisplayMemberConverter : Object, IValueConverter, IDisposable
Constructors
DisplayMemberConverter(GridColumn)
Initializes a new instance of the DisplayMemberConverter class.
Declaration
public DisplayMemberConverter(GridColumn column)
Parameters
Type | Name | Description |
---|---|---|
GridColumn | column | The GridColumn which has to undergo conversion. |
Methods
Convert(Object)
Converts selected value to display member path.
Declaration
protected virtual object Convert(object selectedValue)
Parameters
Type | Name | Description |
---|---|---|
System.Object | selectedValue | Selected Value. |
Returns
Type | Description |
---|---|
System.Object | Display value. |
Convert(Object, Type, Object, CultureInfo)
Converts given value to display member path.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to be converted. |
System.Type | targetType | The target type to be converted. |
System.Object | parameter | The converter parameter. |
System.Globalization.CultureInfo | culture | The culture info of the column. |
Returns
Type | Description |
---|---|
System.Object | Returns the display value based on the value of the cache column. |
ConvertBack(Object, Type, Object, CultureInfo)
Convert back the display value to the actual value.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The converted value. |
System.Type | targetType | The target type to be converted. |
System.Object | parameter | The converter parameter. |
System.Globalization.CultureInfo | culture | The culture info of the column. |
Returns
Type | Description |
---|---|
System.Object | Returns the actual value from the display value of the cache column. |
Dispose()
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | if true - release both managed and unmanaged resources; if false - release only unmanaged resources. |