ClassGridViewRelation
Represents a master-detail relation between two GridViewTemplates based on their column or field names.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridViewRelation : INotifyPropertyChanged, ICloneable, IComparable
Inheritance: objectGridViewRelation
Implements:
Constructors
GridViewRelation()
Initializes a new instance of the GridViewRelation class.
Declaration
public GridViewRelation()
GridViewRelation(GridViewTemplate)
Initializes a new instance of the GridViewRelation class.
Declaration
public GridViewRelation(GridViewTemplate parent)
Parameters
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
parentTemplate
The parent template.
childTemplate
The child template.
Properties
ChildColumnNames
Gets or sets a 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
ChildTemplate
Gets or sets the child GridViewTemplate in the master-detail relation.
Declaration
[TypeConverter(typeof(ReferenceConverter))]
public GridViewTemplate ChildTemplate { get; set; }
Property Value
IsObjectRelational
Gets a value indicating whether this instance is object relational.
Declaration
[Browsable(false)]
public bool IsObjectRelational { get; }
Property Value
true if this instance is object relational; otherwise, false.
IsSelfReference
Gets a value indicating whether this is self reference relation.
Declaration
[Browsable(false)]
public bool IsSelfReference { get; }
Property Value
true if this relation is self reference; otherwise, false.
IsSelfReferenceLoadOnDemand
Gets a value indicating whether this is self reference relation with load on demand.
Declaration
[Browsable(false)]
public bool IsSelfReferenceLoadOnDemand { get; }
Property Value
true if this relation is self reference with load on demand; otherwise, false.
IsValid
Gets a value indicating whether this instance is valid.
Declaration
[Browsable(false)]
public bool IsValid { get; }
Property Value
true if this instance is valid; otherwise, false.
ParentColumnNames
Gets or sets a 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
ParentTemplate
Gets or sets the parent GridViewTemplate in the master-detail relation.
Declaration
[TypeConverter(typeof(ReferenceConverter))]
public GridViewTemplate ParentTemplate { get; set; }
Property Value
RelationName
Gets or sets the name of the relation.
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
obj
An object to compare with this instance.
Returns
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 obj in the sort order. Zero This instance occurs
in the same position in the sort order as obj. Greater than
zero This instance follows obj in the sort order.
Exceptions
obj is not the same type as this instance.
Implements
CopyTo(GridViewRelation)
Copies to the specific relation.
Declaration
public void CopyTo(GridViewRelation relation)
Parameters
relation
The relation.
OnPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event
Declaration
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
A PropertyChangedEventArgs instance containing event data.
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements