Class
GridViewRelationCollection

Represents the collection that stores the relations

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class GridViewRelationCollection : NotifyCollection<GridViewRelation>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Inheritance: objectCollection<GridViewRelation>NotifyCollection<GridViewRelation>GridViewRelationCollection

Implements: ICollectionIEnumerableIListINotifyCollectionChangedINotifyPropertyChanged

Inherited Members NotifyCollection<GridViewRelation>.EmptyNotifyCollection<GridViewRelation>.Move(int, int)NotifyCollection<GridViewRelation>.AddRange(params GridViewRelation[])NotifyCollection<GridViewRelation>.AddRange(IEnumerable<GridViewRelation>)NotifyCollection<GridViewRelation>.BeginUpdate()NotifyCollection<GridViewRelation>.EndUpdate()NotifyCollection<GridViewRelation>.EndUpdate(bool)NotifyCollection<GridViewRelation>.DeferRefresh()NotifyCollection<GridViewRelation>.MoveItem(int, int)NotifyCollection<GridViewRelation>.CreateEventArguments(NotifyCollectionChangedAction)NotifyCollection<GridViewRelation>.CreateEventArguments(NotifyCollectionChangedAction, object, int)NotifyCollection<GridViewRelation>.CreateEventArguments(NotifyCollectionChangedAction, object, object, int)NotifyCollection<GridViewRelation>.OnCollectionChanged(NotifyCollectionChangedEventArgs)NotifyCollection<GridViewRelation>.OnPropertyChanged(PropertyChangedEventArgs)NotifyCollection<GridViewRelation>.OnPropertyChanged(string)NotifyCollection<GridViewRelation>.VersionNotifyCollection<GridViewRelation>.SuspendedNotifyCollection<GridViewRelation>.CollectionChangedNotifyCollection<GridViewRelation>.PropertyChangedCollection<GridViewRelation>.Add(GridViewRelation)Collection<GridViewRelation>.Clear()Collection<GridViewRelation>.CopyTo(GridViewRelation[], int)Collection<GridViewRelation>.Contains(GridViewRelation)Collection<GridViewRelation>.GetEnumerator()Collection<GridViewRelation>.IndexOf(GridViewRelation)Collection<GridViewRelation>.Insert(int, GridViewRelation)Collection<GridViewRelation>.Remove(GridViewRelation)Collection<GridViewRelation>.RemoveAt(int)Collection<GridViewRelation>.CountCollection<GridViewRelation>.ItemsCollection<GridViewRelation>.this[int]

Constructors

GridViewRelationCollection()

Declaration

cs-api-definition
public GridViewRelationCollection()

Methods

AddSelfReference(GridViewTemplate, string, string)

Adds the self reference.

Declaration

cs-api-definition
public void AddSelfReference(GridViewTemplate template, string primaryKeyColumnName, string foreignKeyColumnName)

Parameters

template

GridViewTemplate

The template.

primaryKeyColumnName

string

Name of the primary key column.

foreignKeyColumnName

string

Name of the foreign key column.

AddSelfReference(GridViewTemplate, string[], string[])

Adds the self reference to GridViewTemplate.

Declaration

cs-api-definition
public void AddSelfReference(GridViewTemplate template, string[] primaryKeyColumnNames, string[] foreignKeyColumnNames)

Parameters

template

GridViewTemplate

The template.

primaryKeyColumnNames

string[]

The parent column names.

foreignKeyColumnNames

string[]

The child column names.

AddSelfReferenceLoadOnDemand(GridViewTemplate, string, string)

Adds the self reference in load on demand mode.

Declaration

cs-api-definition
public void AddSelfReferenceLoadOnDemand(GridViewTemplate template, string primaryKeyColumnName, string foreignKeyColumnName)

Parameters

template

GridViewTemplate

The template.

primaryKeyColumnName

string

Name of the primary key column.

foreignKeyColumnName

string

Name of the foreign key column.

AddSelfReferenceLoadOnDemand(GridViewTemplate, string[], string[])

Adds the self reference to GridViewTemplate in load on demand mode.

Declaration

cs-api-definition
public void AddSelfReferenceLoadOnDemand(GridViewTemplate template, string[] primaryKeyColumnNames, string[] foreignKeyColumnNames)

Parameters

template

GridViewTemplate

The template.

primaryKeyColumnNames

string[]

The parent column names.

foreignKeyColumnNames

string[]

The child column names.

ClearItems()

Clears the items.

Declaration

cs-api-definition
protected override void ClearItems()

Overrides NotifyCollection<GridViewRelation>.ClearItems()

Contains(string)

Determines whether [contains] [the specified relation name].

Declaration

cs-api-definition
public bool Contains(string relationName)

Parameters

relationName

string

Name of the relation.

Returns

bool

true if [contains] [the specified relation name]; otherwise, false.

Find(GridViewTemplate, GridViewTemplate)

Finds the specified relation.

Declaration

cs-api-definition
public GridViewRelation Find(GridViewTemplate parent, GridViewTemplate child)

Parameters

parent

GridViewTemplate

The parent.

child

GridViewTemplate

The child.

Returns

GridViewRelation

IndexOf(string)

Indexes the of.

Declaration

cs-api-definition
public int IndexOf(string relationName)

Parameters

relationName

string

Name of the relation.

Returns

int

InsertItem(int, GridViewRelation)

Inserts the item.

Declaration

cs-api-definition
protected override void InsertItem(int index, GridViewRelation item)

Parameters

index

int

The index.

item

GridViewRelation

The item.

Overrides NotifyCollection<GridViewRelation>.InsertItem(int, GridViewRelation)

RemoveItem(int)

Removes the element at the specified index of the Collection<T>.

Declaration

cs-api-definition
protected override void RemoveItem(int index)

Parameters

index

int

The zero-based index of the element to remove.

Exceptions

ArgumentOutOfRangeException

index is less than zero.-or-index is equal to or greater than Count.

Overrides NotifyCollection<GridViewRelation>.RemoveItem(int)

SetItem(int, GridViewRelation)

Sets the item.

Declaration

cs-api-definition
protected override void SetItem(int index, GridViewRelation item)

Parameters

index

int

The index.

item

GridViewRelation

The item.

Overrides NotifyCollection<GridViewRelation>.SetItem(int, GridViewRelation)