A collection that stores GridRelationFields objects.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class GridTableViewRelation : CollectionBase, IList, ICollection, IEnumerable, IStateManager
Inheritance: objectCollectionBaseGridTableViewRelation
Implements:
Inherited Members
Constructors
Initializes a new instance of GridTableViewRelation.
public GridTableViewRelation()
Initializes a new instance of GridTableViewRelation containing any array of GridRelationFields objects.
public GridTableViewRelation(GridRelationFields[] value)
A array of GridRelationFields objects with which to intialize the collection
Initializes a new instance of GridTableViewRelation based on another GridTableViewRelation.
public GridTableViewRelation(GridTableViewRelation value)
A GridTableViewRelation from which the contents are copied
Properties
Gets a value indicating whether the GridTableViewRelation collection is tracking view state changes.
public bool IsTrackingViewState { get; }
Implements:
Represents the entry at the specified index of the GridRelationFields.
public GridRelationFields 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 GridRelationFields with the specified value to the GridTableViewRelation .
public int Add(GridRelationFields value)
The GridRelationFields to add.
Returns:The index at which the new element was inserted.
Copies the elements of an array to the end of the GridTableViewRelation.
public void AddRange(GridRelationFields[] value)
An array of type GridRelationFields containing the objects to add to the collection.
Adds the contents of another GridTableViewRelation to the end of the collection.
public void AddRange(GridTableViewRelation value)
A GridTableViewRelation containing the objects to add to the collection.
Clones the GridTableViewRelation instance and returns a copy.
Gets a value indicating whether the GridTableViewRelation contains the specified GridRelationFields.
public bool Contains(GridRelationFields value)
The GridRelationFields to locate.
Returns:true if the GridRelationFields is contained in the collection; otherwise, false.
Copies the GridTableViewRelation values to a one-dimensional Array instance at the specified index.
public void CopyTo(GridRelationFields[] array, int index)
The one-dimensional Array that is the destination of the values copied from GridTableViewRelation .
indexintThe index in array where copying begins.
array is multidimensional.
-or-
The number of elements in the GridTableViewRelation is greater than the available space between index and the end of array.
array is null.
index is less than array's lowbound.
Returns an enumerator that can iterate through the GridTableViewRelation .
public GridTableViewRelation.GridRelationFieldsEnumerator GetEnumerator()
GridTableViewRelation.GridRelationFieldsEnumerator
None.
Returns the index of a GridRelationFields in the GridTableViewRelation .
public int IndexOf(GridRelationFields value)
The GridRelationFields to locate.
Returns:The index of the GridRelationFields of value in the
GridTableViewRelation, if found; otherwise, -1.
Inserts a GridRelationFields into the GridTableViewRelation at the specified index.
public void Insert(int index, GridRelationFields value)
The zero-based index where value should be inserted.
Loads the view state for the GridTableViewRelation collection.
protected override void OnClear()
Overrides:
Removes a specific GridRelationFields from the GridTableViewRelation .
public void Remove(GridRelationFields value)
The GridRelationFields to remove from the GridTableViewRelation .
Exceptions: ArgumentExceptionvalue is not found in the Collection.
Saves the view state for the GridTableViewRelation collection.
Starts tracking view state changes for the GridTableViewRelation collection.
public void TrackViewState()
Implements: