Uredi

GridViewColumnCollection Class

Definition

Represents a collection of GridViewColumn objects.

public ref class GridViewColumnCollection : System::Collections::ObjectModel::ObservableCollection<System::Windows::Controls::GridViewColumn ^>
public class GridViewColumnCollection : System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.GridViewColumn>
type GridViewColumnCollection = class
    inherit ObservableCollection<GridViewColumn>
Public Class GridViewColumnCollection
Inherits ObservableCollection(Of GridViewColumn)
Inheritance

Remarks

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>.

Constructors

Name Description
GridViewColumnCollection()

Initializes an instance of the GridViewColumnCollection class.

Methods

Name Description
ClearItems()

Removes all of the GridViewColumn objects from the GridViewColumnCollection.

InsertItem(Int32, GridViewColumn)

Adds a GridViewColumn to the collection at the specified index.

MoveItem(Int32, Int32)

Changes the position of a GridViewColumn in the collection.

OnCollectionChanged(NotifyCollectionChangedEventArgs)

Raises the CollectionChanged event when the GridViewColumnCollection changes.

RemoveItem(Int32)

Removes a GridViewColumn from the GridViewColumnCollection at the specified index.

SetItem(Int32, GridViewColumn)

Replaces the GridViewColumn that is at the specified index with another GridViewColumn.

Applies to

See also