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

A collection that stores GridTableView objects. You can access this collection through DetailTables property of a parent GridTableView.

Definition

Constructors

Initializes a new instance of GridTableViewCollection containing any array of GridTableView objects.

C#
public GridTableViewCollection(GridTableView[] value)
Parameters:valueGridTableView[]

An array of GridTableView objects with which to intialize the collection

Initializes a new instance of GridTableViewCollection based on another GridTableViewCollection.

C#
public GridTableViewCollection(GridTableViewCollection value)
Parameters:valueGridTableViewCollection

A GridTableViewCollection from which the contents are copied

Initializes a new instance of GridTableViewCollection.

C#
public GridTableViewCollection(RadGrid Owner, GridTableView OwnerTableView)
Parameters:OwnerRadGrid

RadGrid that would aggregate this instance

OwnerTableViewGridTableView

GridTableView which owns the collection

Properties

Get the instance of RadGrid that owns this instance

C#
[Browsable(false)]
public RadGrid OwnerGrid { get; }

Represents the entry at the specified index of the GridTableView.

C#
[Browsable(false)]
public GridTableView this[int index] { get; set; }
Parameters:indexint

The zero-based index of the entry to locate in the collection.

Property Value:

The entry at the specified index of the collection.

Exceptions: ArgumentOutOfRangeException

index is outside the valid range of indexes for the collection.

Methods

Adds a GridTableView with the specified value to the GridTableViewCollection .

C#
public int Add(GridTableView value)
Parameters:valueGridTableView

The GridTableView to add.

Returns:

int

The index at which the new element was inserted.

Copies the elements of an array to the end of the GridTableViewCollection.

C#
public void AddRange(GridTableView[] value)
Parameters:valueGridTableView[]

An array of type GridTableView containing the objects to add to the collection.

Adds the contents of another GridTableViewCollection to the end of the collection.

C#
public void AddRange(GridTableViewCollection value)
Parameters:valueGridTableViewCollection

A GridTableViewCollection containing the objects to add to the collection.

Gets a value indicating whether the GridTableViewCollection contains the specified GridTableView.

C#
public bool Contains(GridTableView value)
Parameters:valueGridTableView

The GridTableView to locate.

Returns:

bool

true if the GridTableView is contained in the collection; otherwise, false.

Copies the GridTableViewCollection values to a one-dimensional Array instance at the specified index.

C#
public void CopyTo(GridTableView[] array, int index)
Parameters:arrayGridTableView[]

The one-dimensional Array that is the destination of the values copied from GridTableViewCollection .

indexint

The index in array where copying begins.

Exceptions: ArgumentException

array is multidimensional.

-or-

The number of elements in the GridTableViewCollection is greater than the available space between array and the end of array.

ArgumentNullException

array is null.

ArgumentOutOfRangeException

array is less than array"s lowbound.

Returns an enumerator that can iterate through the GridTableViewCollection .

C#
public GridTableViewCollection.GridDataTableEnumerator GetEnumerator()
Returns:

GridTableViewCollection.GridDataTableEnumerator

None.

Returns the index of a GridTableView in the GridTableViewCollection .

C#
public int IndexOf(GridTableView value)
Parameters:valueGridTableView

The GridTableView to locate.

Returns:

int

The index of the GridTableView of value in the GridTableViewCollection, if found; otherwise, -1.

Inserts a GridTableView into the GridTableViewCollection at the specified index.

C#
public void Insert(int index, GridTableView value)
Parameters:indexint

The zero-based index where value should be inserted.

valueGridTableView
C#
protected override void OnInsertComplete(int index, object newValue)
Parameters:indexintnewValueobject

Overrides: CollectionBase.OnInsertComplete(int, object)

C#
protected override void OnSetComplete(int index, object oldValue, object newValue)
Parameters:indexintoldValueobjectnewValueobject

Overrides: CollectionBase.OnSetComplete(int, object, object)

C#
protected override void OnValidate(object value)
Parameters:valueobject

Overrides: CollectionBase.OnValidate(object)

Removes a specific GridTableView from the GridTableViewCollection .

C#
public void Remove(GridTableView value)
Parameters:valueGridTableView

The GridTableView to remove from the GridTableViewCollection .

Exceptions: ArgumentException

value is not found in the Collection.