ClassGridViewRelationCollection
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
GridViewRelationCollection()
Declaration
public GridViewRelationCollection()
Methods
AddSelfReference(GridViewTemplate, string, string)
Adds the self reference.
Declaration
public void AddSelfReference(GridViewTemplate template, string primaryKeyColumnName, string foreignKeyColumnName)
Parameters
template
The template.
primaryKeyColumnName
Name of the primary key column.
foreignKeyColumnName
Name of the foreign key column.
AddSelfReference(GridViewTemplate, string[], string[])
Adds the self reference to GridViewTemplate.
AddSelfReferenceLoadOnDemand(GridViewTemplate, string, string)
Adds the self reference in load on demand mode.
Declaration
public void AddSelfReferenceLoadOnDemand(GridViewTemplate template, string primaryKeyColumnName, string foreignKeyColumnName)
Parameters
template
The template.
primaryKeyColumnName
Name of the primary key column.
foreignKeyColumnName
Name of the foreign key column.
AddSelfReferenceLoadOnDemand(GridViewTemplate, string[], string[])
Adds the self reference to GridViewTemplate in load on demand mode.
Declaration
public void AddSelfReferenceLoadOnDemand(GridViewTemplate template, string[] primaryKeyColumnNames, string[] foreignKeyColumnNames)
Parameters
template
The template.
primaryKeyColumnNames
string[]
The parent column names.
foreignKeyColumnNames
string[]
The child column names.
ClearItems()
Clears the items.
Declaration
protected override void ClearItems()
Overrides
Contains(string)
Determines whether [contains] [the specified relation name].
Find(GridViewTemplate, GridViewTemplate)
Finds the specified relation.
Declaration
public GridViewRelation Find(GridViewTemplate parent, GridViewTemplate child)
Parameters
parent
The parent.
child
The child.
Returns
IndexOf(string)
Indexes the of.
InsertItem(int, GridViewRelation)
Inserts the item.
Declaration
protected override void InsertItem(int index, GridViewRelation item)
Parameters
index
The index.
item
The item.
Overrides
RemoveItem(int)
Removes the element at the specified index of the Collection<T>.
Declaration
protected override void RemoveItem(int index)
Parameters
index
The zero-based index of the element to remove.
Exceptions
index is less than zero.-or-index is equal
to or greater than Count.
Overrides
SetItem(int, GridViewRelation)
Sets the item.
Declaration
protected override void SetItem(int index, GridViewRelation item)
Parameters
index
The index.
item
The item.
Overrides