menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataGridSelectedCellCollection - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataGridSelectedCellCollection

    Represents a collection of SelectedCellsInfo, that represent the selected cells in a SfDataGrid control. This class cannot be inherited.

    Inheritance
    System.Object
    DataGridSelectedCellCollection
    Implements
    System.Collections.Generic.IList<SelectedCellsInfo>
    System.Collections.Generic.ICollection<SelectedCellsInfo>
    System.Collections.Generic.IEnumerable<SelectedCellsInfo>
    System.Collections.IEnumerable
    Namespace: Syncfusion.Maui.DataGrid
    Assembly: Syncfusion.Maui.DataGrid.dll
    Syntax
    public class DataGridSelectedCellCollection : Object, IList<SelectedCellsInfo>, ICollection<SelectedCellsInfo>, IEnumerable<SelectedCellsInfo>, IEnumerable

    Constructors

    DataGridSelectedCellCollection()

    Initializes a new instance of the DataGridSelectedCellCollection class.

    Declaration
    public DataGridSelectedCellCollection()

    Properties

    Count

    Gets the number of cells info contained in the DataGridSelectedCellCollection list.

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

    IsReadOnly

    Gets a value indicating whether the DataGridSelectedCellCollection list is read only.

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

    True if the DataGridSelectedCellCollection list is read only; otherwise, false.

    Item[Int32]

    Gets or sets the selected cells information at the specified index.

    Declaration
    public SelectedCellsInfo this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type
    SelectedCellsInfo

    Methods

    Add(SelectedCellInfo)

    Adds the specific cell info into the DataGridSelectedCellCollection list.

    Declaration
    public void Add(SelectedCellInfo cellInfo)
    Parameters
    Type Name Description
    SelectedCellInfo cellInfo

    Add(SelectedCellsInfo)

    Adds the specific cells info into the DataGridSelectedCellCollection list.

    Declaration
    public void Add(SelectedCellsInfo cellsInfo)
    Parameters
    Type Name Description
    SelectedCellsInfo cellsInfo

    Clear()

    Removes all elements from the DataGridSelectedCellCollection list.

    Declaration
    public void Clear()

    Contains(SelectedCellInfo)

    Determines whether the specific cell info is in the DataGridSelectedCellCollection list.

    Declaration
    public bool Contains(SelectedCellInfo cellInfo)
    Parameters
    Type Name Description
    SelectedCellInfo cellInfo
    Returns
    Type
    System.Boolean

    Contains(SelectedCellsInfo)

    Determines whether the specific cells info contains in the DataGridSelectedCellCollection list.

    Declaration
    public bool Contains(SelectedCellsInfo cellsInfo)
    Parameters
    Type Name Description
    SelectedCellsInfo cellsInfo
    Returns
    Type
    System.Boolean

    CopyTo(SelectedCellsInfo[], Int32)

    Copies all the cells information to the specified destination array index.

    Declaration
    public void CopyTo(SelectedCellsInfo[] array, int arrayIndex)
    Parameters
    Type Name Description
    SelectedCellsInfo[] array
    System.Int32 arrayIndex

    GetEnumerator()

    Gets an enumerator that iterates through the DataGridSelectedCellCollection list.

    Declaration
    public IEnumerator<SelectedCellsInfo> GetEnumerator()
    Returns
    Type
    System.Collections.Generic.IEnumerator<SelectedCellsInfo>

    IndexOf(SelectedCellsInfo)

    Searches for the specified selected cells info and returns zero-based index of the first occurrence with in the DataGridSelectedCellCollection.

    Declaration
    public int IndexOf(SelectedCellsInfo item)
    Parameters
    Type Name Description
    SelectedCellsInfo item
    Returns
    Type
    System.Int32

    Insert(Int32, SelectedCellInfo)

    Inserts a specified cell info into the DataGridSelectedCellCollection at the specified index.

    Declaration
    public void Insert(int index, SelectedCellInfo cellInfo)
    Parameters
    Type Name Description
    System.Int32 index
    SelectedCellInfo cellInfo

    Insert(Int32, SelectedCellsInfo)

    Insert a specified cells info into the DataGridSelectedCellCollection at the specified index.

    Declaration
    public void Insert(int index, SelectedCellsInfo newItem)
    Parameters
    Type Name Description
    System.Int32 index
    SelectedCellsInfo newItem

    Remove(SelectedCellInfo)

    Removes the first occurrence of a specific cell info from the DataGridSelectedCellCollection list.

    Declaration
    public bool Remove(SelectedCellInfo cellInfo)
    Parameters
    Type Name Description
    SelectedCellInfo cellInfo
    Returns
    Type
    System.Boolean

    Remove(SelectedCellsInfo)

    Removes the first occurrence of a specific cells info from the DataGridSelectedCellCollection list.

    Declaration
    public bool Remove(SelectedCellsInfo cellsInfo)
    Parameters
    Type Name Description
    SelectedCellsInfo cellsInfo
    Returns
    Type
    System.Boolean
    Exceptions
    Type Condition
    System.ArgumentException

    RemoveAt(Int32)

    Removes the cells info at specified index of the DataGridSelectedCellCollection.

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    Implements

    System.Collections.Generic.IList<>
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved