A collection that stores GridTableView objects. You can access this collection through DetailTables property of a parent GridTableView.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class GridTableViewCollection : CollectionBase, IList, ICollection, IEnumerable
Inheritance: objectCollectionBaseGridTableViewCollection
Implements:
Inherited Members
Constructors
Initializes a new instance of GridTableViewCollection containing any array of GridTableView objects.
public GridTableViewCollection(GridTableView[] value)
An array of GridTableView objects with which to intialize the collection
Initializes a new instance of GridTableViewCollection based on another GridTableViewCollection.
public GridTableViewCollection(GridTableViewCollection value)
A GridTableViewCollection from which the contents are copied
Initializes a new instance of GridTableViewCollection.
public GridTableViewCollection(RadGrid Owner, GridTableView OwnerTableView)
RadGrid that would aggregate this instance
OwnerTableViewGridTableViewGridTableView which owns the collection
Properties
Get the instance of RadGrid that owns this instance
[Browsable(false)]
public RadGrid OwnerGrid { get; }
Represents the entry at the specified index of the GridTableView.
[Browsable(false)]
public GridTableView this[int index] { get; set; }
The zero-based index of the entry to locate in the collection.
Property Value:The entry at the specified index of the collection.
Exceptions: ArgumentOutOfRangeExceptionindex is outside the valid range of indexes for the collection.
Methods
Adds a GridTableView with the specified value to the GridTableViewCollection .
public int Add(GridTableView value)
The GridTableView to add.
Returns:The index at which the new element was inserted.
Copies the elements of an array to the end of the GridTableViewCollection.
public void AddRange(GridTableView[] value)
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.
public void AddRange(GridTableViewCollection value)
A GridTableViewCollection containing the objects to add to the collection.
Gets a value indicating whether the GridTableViewCollection contains the specified GridTableView.
public bool Contains(GridTableView value)
The GridTableView to locate.
Returns: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.
public void CopyTo(GridTableView[] array, int index)
The one-dimensional Array that is the destination of the values copied from GridTableViewCollection .
indexintThe index in array where copying begins.
array is multidimensional.
-or-
The number of elements in the GridTableViewCollection is greater than the available space between array and the end of array.
array is null.
array is less than array"s lowbound.
Returns an enumerator that can iterate through the GridTableViewCollection .
public GridTableViewCollection.GridDataTableEnumerator GetEnumerator()
GridTableViewCollection.GridDataTableEnumerator
None.
Returns the index of a GridTableView in the GridTableViewCollection .
public int IndexOf(GridTableView value)
The GridTableView to locate.
Returns:The index of the GridTableView of value in the
GridTableViewCollection, if found; otherwise, -1.
Inserts a GridTableView into the GridTableViewCollection at the specified index.
public void Insert(int index, GridTableView value)
The zero-based index where value should be inserted.
Removes a specific GridTableView from the GridTableViewCollection .
public void Remove(GridTableView value)
The GridTableView to remove from the GridTableViewCollection .
Exceptions: ArgumentExceptionvalue is not found in the Collection.