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

A collection that stores GridRelationFields objects.

Definition

Constructors

Initializes a new instance of GridTableViewRelation.

C#
public GridTableViewRelation()

Initializes a new instance of GridTableViewRelation containing any array of GridRelationFields objects.

C#
public GridTableViewRelation(GridRelationFields[] value)
Parameters:valueGridRelationFields[]

A array of GridRelationFields objects with which to intialize the collection

Initializes a new instance of GridTableViewRelation based on another GridTableViewRelation.

C#
public GridTableViewRelation(GridTableViewRelation value)
Parameters:valueGridTableViewRelation

A GridTableViewRelation from which the contents are copied

Properties

Gets a value indicating whether the GridTableViewRelation collection is tracking view state changes.

C#
public bool IsTrackingViewState { get; }

Implements: IStateManager.IsTrackingViewState

Represents the entry at the specified index of the GridRelationFields.

C#
public GridRelationFields 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 GridRelationFields with the specified value to the GridTableViewRelation .

C#
public int Add(GridRelationFields value)
Parameters:valueGridRelationFields

The GridRelationFields to add.

Returns:

int

The index at which the new element was inserted.

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

C#
public void AddRange(GridRelationFields[] value)
Parameters:valueGridRelationFields[]

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.

C#
public void AddRange(GridTableViewRelation value)
Parameters:valueGridTableViewRelation

A GridTableViewRelation containing the objects to add to the collection.

Clones the GridTableViewRelation instance and returns a copy.

C#
public GridTableViewRelation Clone()
Returns:

GridTableViewRelation

The cloned GridTableViewRelation instance.

Gets a value indicating whether the GridTableViewRelation contains the specified GridRelationFields.

C#
public bool Contains(GridRelationFields value)
Parameters:valueGridRelationFields

The GridRelationFields to locate.

Returns:

bool

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.

C#
public void CopyTo(GridRelationFields[] array, int index)
Parameters:arrayGridRelationFields[]

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

indexint

The index in array where copying begins.

Exceptions: ArgumentException

array is multidimensional.

-or-

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

ArgumentNullException

array is null.

ArgumentOutOfRangeException

index is less than array's lowbound.

Returns an enumerator that can iterate through the GridTableViewRelation .

C#
public GridTableViewRelation.GridRelationFieldsEnumerator GetEnumerator()
Returns:

GridTableViewRelation.GridRelationFieldsEnumerator

None.

Returns the index of a GridRelationFields in the GridTableViewRelation .

C#
public int IndexOf(GridRelationFields value)
Parameters:valueGridRelationFields

The GridRelationFields to locate.

Returns:

int

The index of the GridRelationFields of value in the GridTableViewRelation, if found; otherwise, -1.

Inserts a GridRelationFields into the GridTableViewRelation at the specified index.

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

The zero-based index where value should be inserted.

valueGridRelationFields

Loads the view state for the GridTableViewRelation collection.

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

Implements: IStateManager.LoadViewState(object)

C#
protected override void OnClear()

Overrides: CollectionBase.OnClear()

C#
protected override void OnInsert(int index, object value)
Parameters:indexintvalueobject

Overrides: CollectionBase.OnInsert(int, object)

C#
protected override void OnRemove(int index, object value)
Parameters:indexintvalueobject

Overrides: CollectionBase.OnRemove(int, object)

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

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

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

Overrides: CollectionBase.OnValidate(object)

Removes a specific GridRelationFields from the GridTableViewRelation .

C#
public void Remove(GridRelationFields value)
Parameters:valueGridRelationFields

The GridRelationFields to remove from the GridTableViewRelation .

Exceptions: ArgumentException

value is not found in the Collection.

Saves the view state for the GridTableViewRelation collection.

C#
public object SaveViewState()
Returns:

object

Implements: IStateManager.SaveViewState()

Starts tracking view state changes for the GridTableViewRelation collection.

C#
public void TrackViewState()

Implements: IStateManager.TrackViewState()