New to Telerik UI for WinFormsStart a free 30-day trial

Represents the collection that stores the relations

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
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

C#
public GridViewRelationCollection()

Methods

Adds the self reference.

C#
public void AddSelfReference(GridViewTemplate template, string primaryKeyColumnName, string foreignKeyColumnName)
Parameters:templateGridViewTemplate

The template.

primaryKeyColumnNamestring

Name of the primary key column.

foreignKeyColumnNamestring

Name of the foreign key column.

Adds the self reference to GridViewTemplate.

C#
public void AddSelfReference(GridViewTemplate template, string[] primaryKeyColumnNames, string[] foreignKeyColumnNames)
Parameters:templateGridViewTemplate

The template.

primaryKeyColumnNamesstring[]

The parent column names.

foreignKeyColumnNamesstring[]

The child column names.

Adds the self reference in load on demand mode.

C#
public void AddSelfReferenceLoadOnDemand(GridViewTemplate template, string primaryKeyColumnName, string foreignKeyColumnName)
Parameters:templateGridViewTemplate

The template.

primaryKeyColumnNamestring

Name of the primary key column.

foreignKeyColumnNamestring

Name of the foreign key column.

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

C#
public void AddSelfReferenceLoadOnDemand(GridViewTemplate template, string[] primaryKeyColumnNames, string[] foreignKeyColumnNames)
Parameters:templateGridViewTemplate

The template.

primaryKeyColumnNamesstring[]

The parent column names.

foreignKeyColumnNamesstring[]

The child column names.

Clears the items.

C#
protected override void ClearItems()

Overrides: NotifyCollection<GridViewRelation>.ClearItems()

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

C#
public bool Contains(string relationName)
Parameters:relationNamestring

Name of the relation.

Returns:

bool

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

Finds the specified relation.

C#
public GridViewRelation Find(GridViewTemplate parent, GridViewTemplate child)
Parameters:parentGridViewTemplate

The parent.

childGridViewTemplate

The child.

Returns:

GridViewRelation

Indexes the of.

C#
public int IndexOf(string relationName)
Parameters:relationNamestring

Name of the relation.

Returns:

int

Inserts the item.

C#
protected override void InsertItem(int index, GridViewRelation item)
Parameters:indexint

The index.

itemGridViewRelation

The item.

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

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

C#
protected override void RemoveItem(int index)
Parameters:indexint

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)

Sets the item.

C#
protected override void SetItem(int index, GridViewRelation item)
Parameters:indexint

The index.

itemGridViewRelation

The item.

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