Xamarin.iOS

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridHeaderCellControl - Xamarin.iOS API Reference | Syncfusion SfDataGrid control. ">

    Show / Hide Table of Contents

    Class GridHeaderCellControl

    Represents a header cell in a SfDataGrid control.

    Inheritance
    System.Object
    CellElement
    GridHeaderCellControl
    Inherited Members
    CellElement.Load()
    CellElement.UnLoad()
    CellElement.GetAutoWidth(Object)
    CellElement.GetAutoHeight(Object)
    CellElement.CanRendererUnload
    CellElement.CanRenderUnLoad
    Namespace: Syncfusion.SfDataGrid
    Assembly: Syncfusion.SfDataGrid.iOS.dll
    Syntax
    public class GridHeaderCellControl : CellElement

    Constructors

    GridHeaderCellControl()

    Initializes a new instance of the GridHeaderCellControl class.

    Declaration
    public GridHeaderCellControl()

    GridHeaderCellControl(CGRect)

    Initializes a new instance of the GridHeaderCellControl class.

    Declaration
    public GridHeaderCellControl(CGRect rect)
    Parameters
    Type Name Description
    CoreGraphics.CGRect rect

    The CoreGraphics.CGRect.

    GridHeaderCellControl(IntPtr)

    Initializes a new instance of the GridHeaderCellControl class.

    Declaration
    public GridHeaderCellControl(IntPtr ptr)
    Parameters
    Type Name Description
    System.IntPtr ptr

    The System.IntPtr.

    Properties

    BorderLayer

    Gets or sets the border layer of the GridHeaderCellControl.

    Declaration
    public CALayer BorderLayer { get; set; }
    Property Value
    Type Description
    CoreAnimation.CALayer

    The border layer of the GridHeaderCellControl.

    ColumnIndex

    Gets or sets the column index of the header cell.

    Declaration
    public int ColumnIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    The column index of the header cell.

    DataColumn

    Gets the data column associated with the header 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 GridHeaderCellControl, which contains the details of the column.

    Gridcolumn

    Declaration
    public GridColumn Gridcolumn { get; }
    Property Value
    Type Description
    GridColumn

    GridColumn

    Gets the GridColumn associated with the header cell.

    Declaration
    public GridColumn GridColumn { get; set; }
    Property Value
    Type Description
    GridColumn

    The GridColumn associated with the header cell.

    GridModel

    Gets or sets the GridModel of the SfDataGrid control, where grid model represents the wrapper class of datagrid, handling the underlying collection and view related operations.

    Declaration
    public GridModel GridModel { get; set; }
    Property Value
    Type Description
    GridModel

    The GridModel of the SfDataGrid control.

    RowIndex

    Gets or sets the row index of the header row.

    Declaration
    public int RowIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    The row index of the header row.

    Remarks

    The header index can also be obtained using the following code example.

    Examples
    var headerIndex = dataGrid.GetHeaderIndex();

    SortAscend

    Gets or sets the image view representing the sort icon based on the sort direction.

    Declaration
    public UIImageView SortAscend { get; set; }
    Property Value
    Type Description
    UIKit.UIImageView

    The image view representing the sort icon based on the sort direction.

    SortColumn

    Gets or sets the column that represents sorting in the Columns collection, which contains the columns in the datagrid.

    Declaration
    public object SortColumn { get; set; }
    Property Value
    Type Description
    System.Object

    The column that represents sorting in the Columns collection.

    Remarks

    The sort direction of the column that represents sorting can be obtained using SortDirection property.

    SortDirection

    Gets or sets the sort direction of the associated GridColumn which is sorted.

    Declaration
    public object SortDirection { get; set; }
    Property Value
    Type Description
    System.Object

    The sort direction of the associated GridColumn which is sorted.

    Remarks

    The grid column which is sorted can be obtained from the SortColumn property of the grid header cell control.

    See Also
    SortColumn

    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
    CellElement.Dispose(Boolean)

    Draw(CGRect)

    Draws the view within the passed-in rectangle.

    Declaration
    public override void Draw(CGRect rect)
    Parameters
    Type Name Description
    CoreGraphics.CGRect rect

    The CoreGraphics.CGRect in which the view should be drawn.

    LayoutSubviews()

    Layout the children in the view.

    Declaration
    public override void LayoutSubviews()

    OnCellValueChanged()

    Occurs when header cell value is changed.

    Declaration
    public override void OnCellValueChanged()
    Overrides
    CellElement.OnCellValueChanged()

    TouchesBegan(NSSet, UIEvent)

    This method arises when the touches begin.

    Declaration
    public override void TouchesBegan(NSSet touches, UIEvent evt)
    Parameters
    Type Name Description
    Foundation.NSSet touches

    The Foundation.NSSet representing the touches.

    UIKit.UIEvent evt

    The UIKit.UIEvent which consists of the touch events.

    Update()

    Updates the header cell components of a column.

    Declaration
    public void Update()
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved