[Root] / Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid Namespace / ColumnCollection Class


In This Topic
    ColumnCollection Class
    In This Topic
    Represents a dynamic column collection that provides notifications when items are added, removed, or when the whole collection is refreshed.
    Object Model
    ColumnCollection ClassColumnBase Class
    Syntax
    'Declaration
     
    <DefaultMemberAttribute("Item")>
    <DebuggerTypeProxyAttribute(System.Collections.Generic.Mscorlib_CollectionDebugView`1)>
    <DebuggerDisplayAttribute("Count = {Count}")>
    Public Class ColumnCollection 
       Inherits ObservableColumnCollection
    'Usage
     
    Dim instance As ColumnCollection
    [DefaultMember("Item")]
    [DebuggerTypeProxy(System.Collections.Generic.Mscorlib_CollectionDebugView`1)]
    [DebuggerDisplay("Count = {Count}")]
    public class ColumnCollection : ObservableColumnCollection 
    Inheritance Hierarchy
    Public Properties
     NameDescription
    Public Property (Inherited from System.Collections.ObjectModel.Collection<T>)
    Public PropertyOverloaded. Retrieves the column with the specified field name from the collection. (Inherited from Xceed.Wpf.DataGrid.ObservableColumnCollection)
    Public PropertyGets or sets a grid's main (primary) column.  
    Top
    Protected Properties
     NameDescription
    Protected Property (Inherited from System.Collections.ObjectModel.Collection<T>)
    Top
    Public Methods
    Protected Methods
     NameDescription
    Protected MethodRemoves all items from the collection. (Inherited from Xceed.Wpf.DataGrid.ObservableColumnCollection)
    Protected MethodInserts a column at the specified index. (Inherited from Xceed.Wpf.DataGrid.ObservableColumnCollection)
    Protected MethodMoves an item in the collection. (Inherited from Xceed.Wpf.DataGrid.ContentElementCollection<ColumnBase>)
    Protected MethodRaises the CollectionChanged event. (Inherited from Xceed.Wpf.DataGrid.ContentElementCollection<ColumnBase>)
    Protected MethodOverridden. Invoked after an item is added.  
    Protected MethodOverridden. Called when a column is about to be added to the collection.  
    Protected MethodOverridden. Invoked after an item is removed.  
    Protected MethodOverridden. Called when a column is about to be removed the collection.  
    Protected MethodRaises the PropertyChanged event using the specified PropertyChangedEventArgs. (Inherited from Xceed.Wpf.DataGrid.ContentElementCollection<ColumnBase>)
    Protected Method (Inherited from Xceed.Wpf.DataGrid.ObservableColumnCollection)
    Protected MethodRemoves the column at the specified index. (Inherited from Xceed.Wpf.DataGrid.ContentElementCollection<ColumnBase>)
    Protected MethodReplaces an existing column with the specified column. (Inherited from Xceed.Wpf.DataGrid.ObservableColumnCollection)
    Top
    Public Events
     NameDescription
    Public EventRaised when a change occurs in the collection. (Inherited from Xceed.Wpf.DataGrid.ContentElementCollection<ColumnBase>)
    Public EventRaised when the value of a property is changed. (Inherited from Xceed.Wpf.DataGrid.ContentElementCollection<ColumnBase>)
    Top
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also