Class GridCell
Represents a record cell in a SfDataGrid control.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.Android.dll
Syntax
public class GridCell : CellElement, View.IOnLongClickListener, IJavaObject, IDisposable, IJavaPeerable
  Constructors
GridCell(Context)
Initializes a new instance of the GridCell class.
Declaration
public GridCell(Context context)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Android.Content.Context | context | The Android.Content.Context.  | 
      
GridCell(Context, IAttributeSet)
Initializes a new instance of the GridCell class.
Declaration
public GridCell(Context context, IAttributeSet attributeSet)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Android.Content.Context | context | The Android.Content.Context.  | 
      
| Android.Util.IAttributeSet | attributeSet | The Android.Util.IAttributeSet.  | 
      
GridCell(Context, IAttributeSet, Int32)
Initializes a new instance of the GridCell class.
Declaration
public GridCell(Context context, IAttributeSet attributeSet, int definedStyle)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Android.Content.Context | context | The Android.Content.Context.  | 
      
| Android.Util.IAttributeSet | attributeSet | The Android.Util.IAttributeSet.  | 
      
| System.Int32 | definedStyle | The value for defined style.  | 
      
GridCell(IntPtr, JniHandleOwnership)
Initializes a new instance of the GridCell class.
Declaration
protected GridCell(IntPtr javaReference, JniHandleOwnership transfer)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.IntPtr | javaReference | The System.IntPtr.  | 
      
| Android.Runtime.JniHandleOwnership | transfer | The Android.Runtime.JniHandleOwnership.  | 
      
Properties
DataColumn
Gets the data column associated with the grid cell which contains the details of the column.
Declaration
public DataColumnBase DataColumn { get; }
  Property Value
| Type | Description | 
|---|---|
| Syncfusion.SfDataGrid.DataColumnBase | An object that represents the Syncfusion.SfDataGrid.DataColumn associated with the GridCell, which contains the details of the column.  | 
      
Methods
Dispose(Boolean)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected override 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.  | 
      
Overrides
OnDraw(Canvas)
The borders and the content of the grid cell is drawn here.
Declaration
protected override void OnDraw(Canvas canvas)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Android.Graphics.Canvas | canvas | The Android.Graphics.Canvas on which the background will be drawn.  | 
      
OnInterceptTouchEvent(MotionEvent)
Occurs when the touch is recognized in the view.
Declaration
public override bool OnInterceptTouchEvent(MotionEvent ev)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Android.Views.MotionEvent | ev | The Android.Views.MotionEvent.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | Returns a boolean value indicating whether the touch is handled or not.  | 
      
OnLayout(Boolean, Int32, Int32, Int32, Int32)
Positions and sizes the content of a GridCell.
Declaration
protected override void OnLayout(bool changed, int left, int top, int right, int bottom)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | changed | True if the size of the view is changed, otherwise false.  | 
      
| System.Int32 | left | A value that represents the x coordinate of the child.  | 
      
| System.Int32 | top | A value that represents the y coordinate of the child.  | 
      
| System.Int32 | right | A value that represents the width of the child.  | 
      
| System.Int32 | bottom | A value that represents the height of the child.  | 
      
Overrides
OnLongClick(View)
This method arises when the grid cell is long clicked.
Declaration
public bool OnLongClick(View v)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Android.Views.View | v | The view of the grid cell, which is long clicked.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | Returns a boolean value indicating whether long click is handled or not.  | 
      
OnTouchEvent(MotionEvent)
This method handles the touch event.
Declaration
public override bool OnTouchEvent(MotionEvent e)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Android.Views.MotionEvent | e | The Android.Views.MotionEvent.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | Returns a boolean value indicating whether the touch is handled or not.  | 
      
PerformClick()
Call this view's OnClickListener, if it is defined.
Declaration
public override bool PerformClick()
  Returns
| Type | Description | 
|---|---|
| System.Boolean | Return whether to perform click or not  | 
      
ShouldValidateLabelProperties()
Gets a boolean value indicating whether to set padding for child view or not.
Declaration
protected virtual bool ShouldValidateLabelProperties()
  Returns
| Type | Description | 
|---|---|
| System.Boolean | Return a boolean value indicating whether to set padding for child view or not.  |