New to Telerik UI for WinFormsStart a free 30-day trial

Represents a collection that stores the group descriptors.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridViewGroupDescriptorCollection : GroupDescriptorCollection, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, INotifyCollectionChanging

Inheritance: objectCollection<GroupDescriptor>NotifyCollection<GroupDescriptor>GroupDescriptorCollectionGridViewGroupDescriptorCollection

Derived Classes: GridGroupByExpressionCollection

Implements: ICollectionIEnumerableIListINotifyCollectionChangedINotifyCollectionChangingINotifyPropertyChanged...

Inherited Members GroupDescriptorCollection.Add(string, ListSortDirection)GroupDescriptorCollection.Remove(string)GroupDescriptorCollection.Contains(string, bool)GroupDescriptorCollection.GetCompareOpations(bool)GroupDescriptorCollection.Contains(string)GroupDescriptorCollection.FindAllAssociatedSortDescriptors(string)GroupDescriptorCollection.FindAllAssociatedSortDescriptors(string, bool)GroupDescriptorCollection.UseCaseSensitiveFieldNamesGroupDescriptorCollection.ExpressionNotifyCollection<GroupDescriptor>.EmptyNotifyCollection<GroupDescriptor>.Move(int, int)NotifyCollection<GroupDescriptor>.AddRange(params GroupDescriptor[])NotifyCollection<GroupDescriptor>.AddRange(IEnumerable<GroupDescriptor>)NotifyCollection<GroupDescriptor>.BeginUpdate()NotifyCollection<GroupDescriptor>.EndUpdate()NotifyCollection<GroupDescriptor>.EndUpdate(bool)NotifyCollection<GroupDescriptor>.DeferRefresh()NotifyCollection<GroupDescriptor>.CreateEventArguments(NotifyCollectionChangedAction)NotifyCollection<GroupDescriptor>.CreateEventArguments(NotifyCollectionChangedAction, object, int)NotifyCollection<GroupDescriptor>.CreateEventArguments(NotifyCollectionChangedAction, object, object, int)NotifyCollection<GroupDescriptor>.OnPropertyChanged(PropertyChangedEventArgs)NotifyCollection<GroupDescriptor>.OnPropertyChanged(string)NotifyCollection<GroupDescriptor>.VersionNotifyCollection<GroupDescriptor>.SuspendedNotifyCollection<GroupDescriptor>.CollectionChangedNotifyCollection<GroupDescriptor>.PropertyChangedCollection<GroupDescriptor>.Add(GroupDescriptor)Collection<GroupDescriptor>.Clear()Collection<GroupDescriptor>.CopyTo(GroupDescriptor[], int)Collection<GroupDescriptor>.Contains(GroupDescriptor)Collection<GroupDescriptor>.GetEnumerator()Collection<GroupDescriptor>.IndexOf(GroupDescriptor)Collection<GroupDescriptor>.Insert(int, GroupDescriptor)Collection<GroupDescriptor>.Remove(GroupDescriptor)Collection<GroupDescriptor>.RemoveAt(int)Collection<GroupDescriptor>.CountCollection<GroupDescriptor>.ItemsCollection<GroupDescriptor>.this[int]...

Constructors

Initializes a new instance of the GridViewGroupDescriptorCollection class.

C#
public GridViewGroupDescriptorCollection(GridViewTemplate owner)
Parameters:ownerGridViewTemplate

The owner.

Methods

Clears the items.

C#
protected override void ClearItems()

Overrides: GroupDescriptorCollection.ClearItems()

Inserts the item.

C#
protected override void InsertItem(int index, GroupDescriptor item)
Parameters:indexint

The index.

itemGroupDescriptor

The item.

Overrides: GroupDescriptorCollection.InsertItem(int, GroupDescriptor)

Moves the item.

C#
protected override void MoveItem(int oldIndex, int newIndex)
Parameters:oldIndexint

The old index.

newIndexint

The new index.

Overrides: NotifyCollection<GroupDescriptor>.MoveItem(int, int)

Raises the event.

C#
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
Parameters:argsNotifyCollectionChangedEventArgs

The NotifyCollectionChangedEventArgs instance containing the event data.

Overrides: NotifyCollection<GroupDescriptor>.OnCollectionChanged(NotifyCollectionChangedEventArgs)

Raises the event.

C#
protected virtual void OnCollectionChanging(NotifyCollectionChangingEventArgs args)
Parameters:argsNotifyCollectionChangingEventArgs

The NotifyCollectionChangingEventArgs instance containing the event data.

Removes the element at the specified index of the Collection<T>.

C#
protected override void RemoveItem(int index)
Parameters:indexint

The zero-based index of the element to remove.

Exceptions:

ArgumentOutOfRangeException

index is less than zero.-or-index is equal to or greater than Count.

Overrides: GroupDescriptorCollection.RemoveItem(int)

Sets the item.

C#
protected override void SetItem(int index, GroupDescriptor item)
Parameters:indexint

The index.

itemGroupDescriptor

The item.

Overrides: GroupDescriptorCollection.SetItem(int, GroupDescriptor)

Events

Occurs before the collection changes.

C#
public event NotifyCollectionChangingEventHandler CollectionChanging

Implements: INotifyCollectionChanging.CollectionChanging