Class GridEditorColumnConverter
A converter to apply for editor columns.
Implements
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.Android.dll
Syntax
public class GridEditorColumnConverter : Object, IValueConverter
  Constructors
GridEditorColumnConverter(GridEditorColumn)
Initializes a new instance of the GridEditorColumnConverter class.
Declaration
public GridEditorColumnConverter(GridEditorColumn column)
  Parameters
| Type | Name | Description | 
|---|---|---|
| GridEditorColumn | column | The GridEditorColumn.  | 
      
Methods
Convert(Object, Type, Object, CultureInfo)
Formats the given value based on the CultureInfo of the cacheColumn.
Declaration
public virtual object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | value | The value to be formatted.  | 
      
| System.Type | targetType | The target type to be converted.  | 
      
| System.Object | parameter | The converter parameter.  | 
      
| System.Globalization.CultureInfo | culture | The culture info based on which the given value is to be formatted.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Object | Returns the formatted value based on the CultureInfo of the cache column.  | 
      
ConvertBack(Object, Type, Object, CultureInfo)
Convert back the given formatted value to the actual value.
Declaration
public virtual object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | value | The formatted value.  | 
      
| System.Type | targetType | The target type to be converted.  | 
      
| System.Object | parameter | The converter parameter.  | 
      
| System.Globalization.CultureInfo | culture | The culture info based on which the given value is formatted.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Object | Returns the actual value from the formatted value.  | 
      
ConvertToFormat(GridColumn, Decimal)
Convert column value to string format.
Declaration
protected virtual string ConvertToFormat(GridColumn column, Decimal columnValue)
  Parameters
| Type | Name | Description | 
|---|---|---|
| GridColumn | column | The column.  | 
      
| System.Decimal | columnValue | The column value.  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | The string value of the given column value.  |