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

The TableDefinition class defines the data model of a tabular data source. It contains information about the field descriptors(columns) and hierarchy settings. This is an abstract class that is used by the data binding logic. Controls such as RadGridView inherit and provide their specific implementations.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
public abstract class TableDefinition : DependencyObject, INotifyPropertyChanged

Inheritance: objectTableDefinition

Derived Classes: GridViewTableDefinitionTreeListViewTableDefinition

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the TableDefinition class.

C#
protected TableDefinition()

Properties

Gets the child table definitions. This collection contains the child table definitions that define the hierarchy structure.

C#
public TableDefinitionCollection ChildTableDefinitions { get; }
Property Value:

The child table definitions.

Gets or sets the data source for the current table definition.

C#
public object DataSource { get; set; }
Property Value:

The data source.

Gets or sets the relation. Relations are used in hierarchy scenarios to obtain data from the parent data item.

C#
public IRelation Relation { get; set; }
Property Value:

The relation.

Methods

Copy child table definitions from the source TableDefinition class.

C#
public virtual void CopyChildTableDefinitionsFrom(TableDefinition source)
Parameters:sourceTableDefinition

Copy properties from the source TableDefinition class.

C#
public virtual void CopyPropertiesFrom(TableDefinition source)
Parameters:sourceTableDefinition

Creates a child table definition of the correct inherited type.

C#
protected abstract TableDefinition CreateChildTableDefinition()
Returns:

TableDefinition

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged