Provides the column-group descriptions owned by a pivot grid. Operations use the data provider's column-group settings when available and otherwise use a local cached list.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.PivotGrid.dll
Syntax:
public class ColumnGroupDescriptionCollection : IPivotFieldDescriptionCollection, IList, ICollection, IEnumerable
Inheritance: objectColumnGroupDescriptionCollection
Implements:
Constructors
Initializes a collection associated with the specified pivot grid element.
public ColumnGroupDescriptionCollection(RadPivotGridElement owner)
The pivot grid element whose column-group descriptions this collection exposes.
Properties
Gets the number of descriptions in the provider's settings, or in the local cache when no provider is available.
public int Count { get; }
Gets whether this collection is read-only. This collection allows its contents to be changed.
public bool IsReadOnly { get; }
Gets the pivot grid element that owns this collection.
public RadPivotGridElement Owner { get; }
Implements:
Gets or replaces the group description at the specified position in the active list.
public IGroupDescription this[int index] { get; set; }
The zero-based position of the group description.
Property Value:The group description at index.
Methods
Appends a group description to the active list.
public void Add(IGroupDescription item)
The group description to add.
Removes every column-group description from the provider's settings, or clears the local cache when no provider is available.
public void Clear()
Determines whether the active list contains the specified group description.
public bool Contains(IGroupDescription item)
The group description to locate.
Returns:Copies the active column-group descriptions into an array, starting at the specified index.
public void CopyTo(IGroupDescription[] array, int arrayIndex)
The destination array.
arrayIndexintThe zero-based destination index.
Gets an enumerator over a snapshot of the current column-group descriptions.
public IEnumerator<IGroupDescription> GetEnumerator()
IEnumerator<IGroupDescription>
An enumerator over a copy of the descriptions in the active list.
Finds an item's position in the provider's column-group settings, or in the local cache when no provider is available.
public int IndexOf(IGroupDescription item)
The group description to locate.
Returns:The zero-based index of item, or -1 if it is not present.
Inserts a group description into the provider's settings, or into the local cache when no provider is available.
public void Insert(int index, IGroupDescription item)
The zero-based insertion position.
itemIGroupDescriptionThe group description to insert.
Removes the specified group description from the active list.
public bool Remove(IGroupDescription item)
The group description to remove.
Returns:true if the description was found and removed; otherwise, false.
Removes the group description at the specified position from the active list.
public void RemoveAt(int index)
The zero-based position of the group description to remove.