Represents a collection of GridColumnGroup. Used to define MultiColumn Headers.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class GridColumnGroupCollection : IList, ICollection, IList<GridColumnGroup>, ICollection<GridColumnGroup>, IEnumerable<GridColumnGroup>, IEnumerable, IStateManager
Inheritance: objectGridColumnGroupCollection
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridColumnGroupCollection class.
public GridColumnGroupCollection()
Properties
Gets the number of elements contained in the GridColumnGroupCollection.
public int Count { get; }
The number of elements contained in the GridColumnGroupCollection.
Implements:
Gets a value indicating whether the GridColumnGroupCollection is read-only.
public bool IsReadOnly { get; }
true if the GridColumnGroupCollection is read-only; otherwise, false.
Implements:
Gets a value indicating whether a the GridColumnGroupCollection is tracking its view state changes.
public bool IsTrackingViewState { get; }
true if a server control is tracking its view state changes; otherwise, false.
Implements:
Gets the GridColumnGroup at the specified index.
Methods
Adds the specified item.
Removes all items from the GridColumnGroup.
public void Clear()
The GridColumnGroupCollection is read-only.
Implements:
Determines whether [contains] [the specified item].
public bool Contains(GridColumnGroup item)
The item.
Returns:true if the items is contained, otherwise false
Implements:
Copies the current collection to the specified array.
public void CopyTo(GridColumnGroup[] array, int arrayIndex)
The array.
arrayIndexintthe index to start copying from.
Implements:
Finds the GridColumnGroup in the collection by specifying its group name.
public GridColumnGroup FindGroupByName(string groupName)
The name of the group.
Returns:Returns the GridColumnGroup which was found. Otherwise 'null'.
Returns an enumerator that iterates through the collection.
public IEnumerator<GridColumnGroup> GetEnumerator()
An enumerator that can be used to iterate through the collection.
Implements:
Gets the index of the GridColumnGroup item in the collection.
public int IndexOf(GridColumnGroup item)
The item.
Returns:index of the item
Implements:
Inserts GridColumnGroup group at the specified index.
public void Insert(int index, GridColumnGroup item)
The index.
itemGridColumnGroupThe item.
Implements:
Loads the GridColumnGroupCollection previously saved view state to the collection.
Removes the specified item.
public bool Remove(GridColumnGroup item)
The item.
Returns:Implements:
Removes the GridColumnGroup item at the specified index.
public void RemoveAt(int index)
The zero-based index of the item to remove.
Exceptions: ArgumentOutOfRangeExceptionindex is not a valid index in the GridColumnGroupCollection.
The GridColumnGroup is read-only.
Implements:
Instructs the collection to track changes to its view state.
public void TrackViewState()
Implements: