menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SelectedCellInfo - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SelectedCellInfo

    Represents a class that contains the information about a particular cell in SfDataGrid.

    Inheritance
    System.Object
    SelectedCellInfo
    Implements
    System.IEquatable<SelectedCellInfo>
    Namespace: Syncfusion.SfDataGrid.XForms
    Assembly: Syncfusion.SfDataGrid.XForms.dll
    Syntax
    public class SelectedCellInfo : Object, IEquatable<SelectedCellInfo>

    Constructors

    SelectedCellInfo(GridColumn, Int32, GridUnboundRow)

    Initializes a new instance of the SelectedCellInfo class for UnBoundRow.

    Declaration
    public SelectedCellInfo(GridColumn column, int rowIndex, GridUnboundRow unBoundRow)
    Parameters
    Type Name Description
    GridColumn column

    Corresponding column of the selected cell in UnBoundRow.

    System.Int32 rowIndex

    Corresponding index of the selected cell in UnBoundRow.

    GridUnboundRow unBoundRow

    Contains the data item of the selected cell in UnBoundRow.

    SelectedCellInfo(GridColumn, Object, NodeEntry, Int32)

    Initializes a new instance of the SelectedCellInfo class for data row.

    Declaration
    public SelectedCellInfo(GridColumn column, object rowData, NodeEntry nodeEntry, int rowIndex = 1)
    Parameters
    Type Name Description
    GridColumn column

    Corresponding column that contains the selected cell.

    System.Object rowData

    The data item of the corresponding selected cell.

    NodeEntry nodeEntry

    The node entry of the corresponding selected cell.

    System.Int32 rowIndex

    (Optional) zero-based index of the summary row.

    Properties

    Column

    Gets the GridColumn that contains the selected cell.

    Declaration
    public GridColumn Column { get; }
    Property Value
    Type
    GridColumn

    GridUnboundRowInfo

    Gets a GridUnboundRow information of the selected unbound row cell.

    Declaration
    public GridUnboundRow GridUnboundRowInfo { get; }
    Property Value
    Type Description
    GridUnboundRow

    The corresponding GridUnboundRow information for the selected unbound row cell.

    IsDataRowCell

    Gets a value indicating whether the selected cell is of a data row.

    Declaration
    public bool IsDataRowCell { get; }
    Property Value
    Type Description
    System.Boolean

    true if the selected cell is of a data row; otherwise, false.

    IsUnBoundRow

    Gets a value indicating whether the selected cell is of an unbound row.

    Declaration
    public bool IsUnBoundRow { get; }
    Property Value
    Type Description
    System.Boolean

    true if the selected cell is of an unbound row; otherwise, false.

    RowData

    Gets the underlying data object of the row that contains the selected cell.

    Declaration
    public object RowData { get; }
    Property Value
    Type
    System.Object

    RowIndex

    Gets the corresponding row index of the selected cell.

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

    Methods

    Equals(SelectedCellInfo)

    Compares whether the current cell info is equal to other cell info of the same type.

    Declaration
    public bool Equals(SelectedCellInfo other)
    Parameters
    Type Name Description
    SelectedCellInfo other

    The cell info to compare with the current cell info.

    Returns
    Type Description
    System.Boolean

    true if the current cell info is equal to the other cell info; otherwise, false.

    GetHashCode()

    Returns the hash code for the SelectedCellInfo instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    Returns the hash code.

    Implements

    System.IEquatable<>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved