Class GridViewRelationCollection
Represents the collection that stores the relations
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridViewRelationCollection : NotifyCollection<GridViewRelation>, IList<GridViewRelation>, ICollection<GridViewRelation>, IList, ICollection, IReadOnlyList<GridViewRelation>, IReadOnlyCollection<GridViewRelation>, IEnumerable<GridViewRelation>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
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
GridViewTemplate
template
The template. |
System.String
primaryKeyColumnName
Name of the primary key column. |
System.String
foreignKeyColumnName
Name of the foreign key column. |
AddSelfReference(GridViewTemplate, String[], String[])
Adds the self reference to GridViewTemplate.
Declaration
public void AddSelfReference(GridViewTemplate template, string[] primaryKeyColumnNames, string[] foreignKeyColumnNames)
Parameters
GridViewTemplate
template
The template. |
System.String[]
primaryKeyColumnNames
The parent column names. |
System.String[]
foreignKeyColumnNames
The child column names. |
AddSelfReferenceLoadOnDemand(GridViewTemplate, String, String)
Adds the self reference in load on demand mode.
Declaration
public void AddSelfReferenceLoadOnDemand(GridViewTemplate template, string primaryKeyColumnName, string foreignKeyColumnName)
Parameters
GridViewTemplate
template
The template. |
System.String
primaryKeyColumnName
Name of the primary key column. |
System.String
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
GridViewTemplate
template
The template. |
System.String[]
primaryKeyColumnNames
The parent column names. |
System.String[]
foreignKeyColumnNames
The child column names. |
ClearItems()
Clears the items.
Declaration
protected override void ClearItems()
Overrides
Contains(String)
Determines whether [contains] [the specified relation name].
Declaration
public bool Contains(string relationName)
Parameters
System.String
relationName
Name of the relation. |
Returns
System.Boolean
|
Find(GridViewTemplate, GridViewTemplate)
Finds the specified relation.
Declaration
public GridViewRelation Find(GridViewTemplate parent, GridViewTemplate child)
Parameters
GridViewTemplate
parent
The parent. |
GridViewTemplate
child
The child. |
Returns
GridViewRelation
|
IndexOf(String)
Indexes the of.
Declaration
public int IndexOf(string relationName)
Parameters
System.String
relationName
Name of the relation. |
Returns
System.Int32
|
InsertItem(Int32, GridViewRelation)
Inserts the item.
Declaration
protected override void InsertItem(int index, GridViewRelation item)
Parameters
System.Int32
index
The index. |
GridViewRelation
item
The item. |
Overrides
RemoveItem(Int32)
Removes the element at the specified index of the System.Collections.ObjectModel.Collection<T>.
Declaration
protected override void RemoveItem(int index)
Parameters
System.Int32
index
The zero-based index of the element to remove. |
Overrides
Exceptions
System.ArgumentOutOfRangeException
|
SetItem(Int32, GridViewRelation)
Sets the item.
Declaration
protected override void SetItem(int index, GridViewRelation item)
Parameters
System.Int32
index
The index. |
GridViewRelation
item
The item. |