New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Represents a collection of GridColumnGroup. Used to define MultiColumn Headers.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class GridColumnGroupCollection : IList, ICollection, IList<GridColumnGroup>, ICollection<GridColumnGroup>, IEnumerable<GridColumnGroup>, IEnumerable, IStateManager

Inheritance: objectGridColumnGroupCollection

Implements: ICollectionICollection<GridColumnGroup>IEnumerableIEnumerable<GridColumnGroup>IListIList<GridColumnGroup>IStateManager...

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Initializes a new instance of the GridColumnGroupCollection class.

C#
public GridColumnGroupCollection()

Properties

Gets the number of elements contained in the GridColumnGroupCollection.

C#
public int Count { get; }
Property Value:

The number of elements contained in the GridColumnGroupCollection.

Implements: ICollection<GridColumnGroup>.Count

Gets a value indicating whether the GridColumnGroupCollection is read-only.

C#
public bool IsReadOnly { get; }
Property Value:

true if the GridColumnGroupCollection is read-only; otherwise, false.

Implements: ICollection<GridColumnGroup>.IsReadOnly

Gets a value indicating whether a the GridColumnGroupCollection is tracking its view state changes.

C#
public bool IsTrackingViewState { get; }
Property Value:

true if a server control is tracking its view state changes; otherwise, false.

Implements: IStateManager.IsTrackingViewState

Gets the GridColumnGroup at the specified index.

C#
public GridColumnGroup this[int index] { get; }
Parameters:indexint

Methods

Adds the specified item.

C#
public void Add(GridColumnGroup item)
Parameters:itemGridColumnGroup

The item.

Implements: ICollection<GridColumnGroup>.Add(GridColumnGroup)

Removes all items from the GridColumnGroup.

C#
public void Clear()
Exceptions: NotSupportedException

The GridColumnGroupCollection is read-only.

Implements: ICollection<GridColumnGroup>.Clear()

Determines whether [contains] [the specified item].

C#
public bool Contains(GridColumnGroup item)
Parameters:itemGridColumnGroup

The item.

Returns:

bool

true if the items is contained, otherwise false

Implements: ICollection<GridColumnGroup>.Contains(GridColumnGroup)

Copies the current collection to the specified array.

C#
public void CopyTo(GridColumnGroup[] array, int arrayIndex)
Parameters:arrayGridColumnGroup[]

The array.

arrayIndexint

the index to start copying from.

Implements: ICollection<GridColumnGroup>.CopyTo(GridColumnGroup[], int)

Finds the GridColumnGroup in the collection by specifying its group name.

C#
public GridColumnGroup FindGroupByName(string groupName)
Parameters:groupNamestring

The name of the group.

Returns:

GridColumnGroup

Returns the GridColumnGroup which was found. Otherwise 'null'.

Returns an enumerator that iterates through the collection.

C#
public IEnumerator<GridColumnGroup> GetEnumerator()
Returns:

IEnumerator<GridColumnGroup>

An enumerator that can be used to iterate through the collection.

Implements: IEnumerable<GridColumnGroup>.GetEnumerator()

Gets the index of the GridColumnGroup item in the collection.

C#
public int IndexOf(GridColumnGroup item)
Parameters:itemGridColumnGroup

The item.

Returns:

int

index of the item

Implements: IList<GridColumnGroup>.IndexOf(GridColumnGroup)

Inserts GridColumnGroup group at the specified index.

C#
public void Insert(int index, GridColumnGroup item)
Parameters:indexint

The index.

itemGridColumnGroup

The item.

Implements: IList<GridColumnGroup>.Insert(int, GridColumnGroup)

Loads the GridColumnGroupCollection previously saved view state to the collection.

C#
public void LoadViewState(object state)
Parameters:stateobject

An object that contains the saved view state values for the collection.

Implements: IStateManager.LoadViewState(object)

Removes the specified item.

C#
public bool Remove(GridColumnGroup item)
Parameters:itemGridColumnGroup

The item.

Returns:

bool

Implements: ICollection<GridColumnGroup>.Remove(GridColumnGroup)

Removes the GridColumnGroup item at the specified index.

C#
public void RemoveAt(int index)
Parameters:indexint

The zero-based index of the item to remove.

Exceptions: ArgumentOutOfRangeException

index is not a valid index in the GridColumnGroupCollection.

NotSupportedException

The GridColumnGroup is read-only.

Implements: IList<GridColumnGroup>.RemoveAt(int)

When implemented by a class, saves the changes to a server control's view state to an object.

C#
public object SaveViewState()
Returns:

object

The object that contains the view state changes.

Implements: IStateManager.SaveViewState()

Instructs the collection to track changes to its view state.

C#
public void TrackViewState()

Implements: IStateManager.TrackViewState()