alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ColumnCollection

    A collection of DataGridColumn, that represent the columns in a SfDataGrid control. This class cannot be inherited.

    Inheritance
    object
    Collection<DataGridColumn>
    ObservableCollection<DataGridColumn>
    ColumnCollection
    Implements
    IList<DataGridColumn>
    ICollection<DataGridColumn>
    IList
    ICollection
    IReadOnlyList<DataGridColumn>
    IReadOnlyCollection<DataGridColumn>
    IEnumerable<DataGridColumn>
    IEnumerable
    INotifyCollectionChanged
    INotifyPropertyChanged
    Inherited Members
    Collection<DataGridColumn>.Add(DataGridColumn)
    Collection<DataGridColumn>.Clear()
    Collection<DataGridColumn>.Contains(DataGridColumn)
    Collection<DataGridColumn>.CopyTo(DataGridColumn[], int)
    Collection<DataGridColumn>.Count
    Collection<DataGridColumn>.GetEnumerator()
    Collection<DataGridColumn>.IndexOf(DataGridColumn)
    Collection<DataGridColumn>.Insert(int, DataGridColumn)
    Collection<DataGridColumn>.Remove(DataGridColumn)
    Collection<DataGridColumn>.RemoveAt(int)
    Collection<DataGridColumn>.this[int]
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    ObservableCollection<DataGridColumn>.CollectionChanged
    ObservableCollection<DataGridColumn>.Move(int, int)
    Namespace: Syncfusion.Maui.DataGrid
    Assembly: Syncfusion.Maui.DataGrid.dll
    Syntax
    [ComVisible(false)]
    public sealed class ColumnCollection : ObservableCollection<DataGridColumn>, IList<DataGridColumn>, ICollection<DataGridColumn>, IList, ICollection, IReadOnlyList<DataGridColumn>, IReadOnlyCollection<DataGridColumn>, IEnumerable<DataGridColumn>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
    Remarks

    Use the ColumnCollection to programmatically manage a collection of DataGridColumn in a SfDataGrid control. You can add, remove or insert columns in the ColumnCollection.

    Constructors

    ColumnCollection()

    Initializes a new instance of the ColumnCollection class.

    Declaration
    public ColumnCollection()

    Properties

    this[string]

    Gets a DataGridColumn-derived column object with the specified MappingName from the Columns collection.

    Declaration
    public DataGridColumn? this[string mappingName] { get; }
    Parameters
    Type Name Description
    string mappingName

    The mapping name of the column whose column object to be retrieved.

    Property Value
    Type Description
    DataGridColumn

    A DataGridColumn object in the Columns collection, associated with the given mapping name.

    Remarks

    Use this Indexer to get a DataGridColumn-derived column object with the specified MappingName from the Columns collection using array notation.

    Methods

    Resume()

    Resumes the UI refresh when the columns are being added or removed.

    Declaration
    public void Resume()
    Remarks

    Update columns by calling RefreshColumns(SfDataGrid) method when the column updates are resumed.

    Suspend()

    Suspends the UI refresh when the columns are being added or removed.

    Declaration
    public void Suspend()

    Implements

    IList<T>
    ICollection<T>
    IList
    ICollection
    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    INotifyCollectionChanged
    INotifyPropertyChanged
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved