Class GridCellTextViewRenderer
GridCellTextViewRenderer is a class for cell renderer that displays Android.Widget.TextView in a GridCell. The class provides strong typed override methods for initializing content of the cell and arranging the cell visuals.
Upon editing it displays Android.Widget.EditText for editing values. Updates to appearance and content of child elements, creation and unloading of views will not trigger layout or render calls in parent canvas.
Inheritance
Inherited Members
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.Android.dll
Syntax
public class GridCellTextViewRenderer : GridVirtualizingCellRenderer<TextView, EditText>, IGridCellRenderer, IDisposable
Constructors
GridCellTextViewRenderer()
Initializes a new instance of the GridCellTextViewRenderer class.
Declaration
public GridCellTextViewRenderer()
Methods
GetControlValue()
Returns the current cell value, only if the renderer's HasCurrentCellState is true.
Declaration
public override object GetControlValue()
Returns
Type | Description |
---|---|
System.Object | The current cell value. |
Overrides
OnCreateDisplayUIView()
Creates a new view or reuses the existing view if reusing can be applied here
Declaration
protected override TextView OnCreateDisplayUIView()
Returns
Type | Description |
---|---|
Android.Widget.TextView | Returns a created new view or reuses the existing view if reusing can be applied here |
Overrides
OnInitializeEditView(DataColumnBase, EditText)
Initializes the edit element of a Syncfusion.SfDataGrid.DataColumn object with the given Android.Widget.EditText view and required values.
Declaration
public override void OnInitializeEditView(DataColumnBase dataColumn, EditText view)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The dataColumn containing the details of the column. |
Android.Widget.EditText | view | The child view to be hosted inside the column element. |
Overrides
OnUpdateCellValue(DataColumnBase)
Updates the cell value of the associated column.
Declaration
protected override void OnUpdateCellValue(DataColumnBase dataColumn)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The data column. |
Overrides
SetControlValue(Object)
Set the current cell value, only if the renderer's HasCurrentCellState is true.
Declaration
public override void SetControlValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to be set to the current cell. |
Overrides
SetFocus(View, Boolean)
Sets the focus for the editing view.
Declaration
protected override void SetFocus(View view, bool needToFocus)
Parameters
Type | Name | Description |
---|---|---|
Android.Views.View | view | Current cell renderer element |
System.Boolean | needToFocus | Returns whether focus has to be set or not. |
Overrides
UpdateEditViewCellStyle(DataColumnBase, EditText)
Updates the cell style of the edit element in a grid cell.
Declaration
protected override void UpdateEditViewCellStyle(DataColumnBase dataColumn, EditText editView)
Parameters
Type | Name | Description |
---|---|---|
Syncfusion.SfDataGrid.DataColumnBase | dataColumn | The data column. |
Android.Widget.EditText | editView | The edit view hosted inside a column element. |