This documentation is archived and is not being maintained.

GridViewColumnCollection Class

Represents a collection of GridViewColumn objects.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public class GridViewColumnCollection : ObservableCollection<GridViewColumn>
<GridViewColumnCollection .../>

A GridViewColumnCollection object contains a set of GridViewColumn objects that are typically used to define the columns of a GridView object. A GridView is a View that defines the layout of data in a ListView control.

To receive notification of changes in the collection, monitor the CollectionChanged event that is inherited from ObservableCollection<T>.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0