Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid Namespace / ColumnCollection Class
Members


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
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also