Class GridViewRelation
Represents a master-detail relation between two GridViewTemplates based on their column or field names.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridViewRelation : INotifyPropertyChanged, ICloneable, IComparable
Constructors
GridViewRelation()
GridViewRelation(GridViewTemplate)
Initializes a new instance of the GridViewRelation class.
Declaration
public GridViewRelation(GridViewTemplate parent)
Parameters
GridViewTemplate
parent
An instance of GridViewTemplate which is parent in the relation. |
GridViewRelation(GridViewTemplate, GridViewTemplate)
Initializes a new instance of the GridViewRelation class.
Declaration
public GridViewRelation(GridViewTemplate parentTemplate, GridViewTemplate childTemplate)
Parameters
GridViewTemplate
parentTemplate
The parent template. |
GridViewTemplate
childTemplate
The child template. |
Properties
ChildColumnNames
Gets or sets a System.Collections.Specialized.StringCollection containing the names of the columns in the datails data source that takes part in the relation.
Declaration
public StringCollection ChildColumnNames { get; set; }
Property Value
System.Collections.Specialized.StringCollection
|
ChildTemplate
Gets or sets the child GridViewTemplate in the master-detail relation.
Declaration
public GridViewTemplate ChildTemplate { get; set; }
Property Value
GridViewTemplate
|
IsObjectRelational
Gets a value indicating whether this instance is object relational.
Declaration
public bool IsObjectRelational { get; }
Property Value
System.Boolean
|
IsSelfReference
Gets a value indicating whether this is self reference relation.
Declaration
public bool IsSelfReference { get; }
Property Value
System.Boolean
|
IsSelfReferenceLoadOnDemand
Gets a value indicating whether this is self reference relation with load on demand.
Declaration
public bool IsSelfReferenceLoadOnDemand { get; }
Property Value
System.Boolean
|
IsValid
Gets a value indicating whether this instance is valid.
Declaration
public bool IsValid { get; }
Property Value
System.Boolean
|
ParentColumnNames
Gets or sets a System.Collections.Specialized.StringCollection containing the names of the columns in the master data source that takes part in the relation.
Declaration
public StringCollection ParentColumnNames { get; set; }
Property Value
System.Collections.Specialized.StringCollection
|
ParentTemplate
Gets or sets the parent GridViewTemplate in the master-detail relation.
Declaration
public GridViewTemplate ParentTemplate { get; set; }
Property Value
GridViewTemplate
|
RelationName
Gets or sets the name of the relation.
Declaration
public string RelationName { get; set; }
Property Value
System.String
|
Methods
CompareTo(Object)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public int CompareTo(object obj)
Parameters
System.Object
obj
An object to compare with this instance. |
Returns
System.Int32
A value that indicates the relative order of the objects being compared.
The return value has these meanings: Value Meaning Less than zero This instance
precedes |
Implements
Exceptions
System.ArgumentException
|
CopyTo(GridViewRelation)
Copies to the specific relation.
Declaration
public void CopyTo(GridViewRelation relation)
Parameters
GridViewRelation
relation
The relation. |
OnPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event
Declaration
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs
e
A System.ComponentModel.PropertyChangedEventArgs instance containing event data. |
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler
|
Explicit Interface Implementations
ICloneable.Clone()
Declaration
object ICloneable.Clone()
Returns
System.Object
|