RelationBinding
Describes a data source and the member mappings used to create and populate a tree level.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RelationBinding : INotifyPropertyChanged, ICloneable
Inheritance: objectRelationBinding
Implements:
Constructors
Creates an unconfigured relation binding whose member names are empty and data source is null.
public RelationBinding()
Initializes a new instance of the RelationBinding class.
public RelationBinding(object dataSource, string dataMember, string displayMember, string parentMember, string childMember, string valueMember, string checkedMember)
The data source.
dataMemberstringThe data member.
displayMemberstringThe display member.
parentMemberstringThe parent member.
childMemberstringThe child member.
valueMemberstringThe value member.
checkedMemberstringThe checked member.
Initializes a new instance of the RelationBinding class.
public RelationBinding(object dataSource, string dataMember, string displayMember, string parentMember, string childMember, string valueMember)
The data source.
dataMemberstringThe data member.
displayMemberstringThe display member.
parentMemberstringThe parent member.
childMemberstringThe child member.
valueMemberstringThe value member.
Initializes a new instance of the RelationBinding class.
public RelationBinding(object dataSource, string displayMember, string parentMember, string childMember, string valueMember)
The data source.
displayMemberstringThe display member.
parentMemberstringThe parent member.
childMemberstringThe child member.
valueMemberstringThe value member.
Initializes a new instance of the RelationBinding class.
Initializes a new instance of the RelationBinding class.
Properties
Gets or sets the checked member.
public string CheckedMember { get; set; }
The checked member.
Gets or sets the child member.
public string ChildMember { get; set; }
The child member.
Gets or sets the data member.
[Browsable(true)]
public string DataMember { get; set; }
The data member.
Gets or sets the data source.
public object DataSource { get; set; }
The data source.
Gets or sets the display member.
public string DisplayMember { get; set; }
The display member.
Gets or sets the parent member.
public string ParentMember { get; set; }
The parent member.
Gets or sets the name of the relation.
public string RelationName { get; set; }
The name of the relation.
Gets or sets the value member.
public string ValueMember { get; set; }
The value member.
Methods
Compares the data source, data member, display member, parent member, value member, and checked member. ChildMember and RelationName are not included in this comparison.
Notifies subscribers that the specified binding property changed.
protected virtual void OnPropertyChanged(string propertyName)
The name of the property reported as changed.
Events
Occurs when a binding property setter reports a change. Assigning RelationName raises this event each time; the other property setters notify only when their values differ.
public event PropertyChangedEventHandler PropertyChanged
Implements: