Represents the collection that stores the relations
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridViewRelationCollection : NotifyCollection<GridViewRelation>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Inheritance: objectCollection<GridViewRelation>NotifyCollection<GridViewRelation>GridViewRelationCollection
Implements:
Inherited Members
Constructors
public GridViewRelationCollection()
Methods
Adds the self reference.
public void AddSelfReference(GridViewTemplate template, string primaryKeyColumnName, string foreignKeyColumnName)
The template.
primaryKeyColumnNamestringName of the primary key column.
foreignKeyColumnNamestringName of the foreign key column.
Adds the self reference to GridViewTemplate.
public void AddSelfReference(GridViewTemplate template, string[] primaryKeyColumnNames, string[] foreignKeyColumnNames)
The template.
primaryKeyColumnNamesstring[]The parent column names.
foreignKeyColumnNamesstring[]The child column names.
Adds the self reference in load on demand mode.
public void AddSelfReferenceLoadOnDemand(GridViewTemplate template, string primaryKeyColumnName, string foreignKeyColumnName)
The template.
primaryKeyColumnNamestringName of the primary key column.
foreignKeyColumnNamestringName of the foreign key column.
Adds the self reference to GridViewTemplate in load on demand mode.
public void AddSelfReferenceLoadOnDemand(GridViewTemplate template, string[] primaryKeyColumnNames, string[] foreignKeyColumnNames)
The template.
primaryKeyColumnNamesstring[]The parent column names.
foreignKeyColumnNamesstring[]The child column names.
Clears the items.
protected override void ClearItems()
Overrides:
Finds the specified relation.
public GridViewRelation Find(GridViewTemplate parent, GridViewTemplate child)
The parent.
childGridViewTemplateThe child.
Returns:Inserts the item.
protected override void InsertItem(int index, GridViewRelation item)
The index.
itemGridViewRelationThe item.
Overrides:
Removes the element at the specified index of the Collection<T>.
Sets the item.
protected override void SetItem(int index, GridViewRelation item)
The index.
itemGridViewRelationThe item.
Overrides: