Class DisplayMemberConverter
to do
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DisplayMemberConverter : IValueConverter, IDisposable
Constructors
DisplayMemberConverter(DataGridColumn)
Initializes a new instance of the DisplayMemberConverter class.
Declaration
public DisplayMemberConverter(DataGridColumn column)
Parameters
| Type | Name | Description |
|---|---|---|
| DataGridColumn | column | The GridColumn which has to undergo conversion. |
Methods
Convert(object?)
Converts selected value to display member path.
Declaration
[RequiresUnreferencedCode("The Convert method is not trim compatible")]
protected virtual object? Convert(object? selectedValue)
Parameters
| Type | Name | Description |
|---|---|---|
| object | selectedValue | Selected Value. |
Returns
| Type | Description |
|---|---|
| object | Display value. |
Convert(object?, Type, object?, CultureInfo)
Converts given value to display member path.
Declaration
[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "The Convert method is not trim compatible")]
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | The value to be converted. |
| Type | targetType | The target type to be converted. |
| object | parameter | The converter parameter. |
| CultureInfo | culture | The culture info of the column. |
Returns
| Type | Description |
|---|---|
| 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 |
|---|---|---|
| object | value | The converted value. |
| Type | targetType | The target type to be converted. |
| object | parameter | The converter parameter. |
| CultureInfo | culture | The culture info of the column. |
Returns
| Type | Description |
|---|---|
| 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(bool)
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 |
|---|---|---|
| bool | disposing | if true - release both managed and unmanaged resources; if false - release only unmanaged resources. |