New to Telerik UI for WPFStart a free 30-day trial

This class represents a relation between two tables. It is similar to relations modeled with foreign keys in relational databases.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
public class TableRelation : RelationBase, IRelation

Inheritance: objectRelationBaseTableRelation

Implements: IRelation

Inherited Members RelationBase.NameRelationBase.IsSelfReference

Constructors

C#
public TableRelation()

Properties

Gets the field names. This collection contains mappings of columns from the master table to columns in the child table.

C#
public FieldDescriptorNamePairCollection FieldNames { get; }
Property Value:

The field names.

Methods

Gets the child data source.

C#
public override object GetDataSource(object context, DataItemCollection parentItems)
Parameters:contextobject

The data context.

parentItemsDataItemCollection

The parent items collection.

Returns:

object

Overrides: RelationBase.GetDataSource(object, DataItemCollection)