Class
TableDefinition

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:

cs-api-definition
public abstract class TableDefinition : DependencyObject, INotifyPropertyChanged

Inheritance: objectTableDefinition

Derived Classes: GridViewTableDefinitionTreeListViewTableDefinition

Implements: INotifyPropertyChanged

Constructors

TableDefinition()

Initializes a new instance of the TableDefinition class.

Declaration

cs-api-definition
protected TableDefinition()

Properties

ChildTableDefinitions

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

Declaration

cs-api-definition
public TableDefinitionCollection ChildTableDefinitions { get; }

Property Value

TableDefinitionCollection

The child table definitions.

DataSource

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

Declaration

cs-api-definition
public object DataSource { get; set; }

Property Value

object

The data source.

Relation

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

Declaration

cs-api-definition
public IRelation Relation { get; set; }

Property Value

IRelation

The relation.

Methods

CopyChildTableDefinitionsFrom(TableDefinition)

Copy child table definitions from the source TableDefinition class.

Declaration

cs-api-definition
public virtual void CopyChildTableDefinitionsFrom(TableDefinition source)

Parameters

source

TableDefinition

CopyPropertiesFrom(TableDefinition)

Copy properties from the source TableDefinition class.

Declaration

cs-api-definition
public virtual void CopyPropertiesFrom(TableDefinition source)

Parameters

source

TableDefinition

CreateChildTableDefinition()

Creates a child table definition of the correct inherited type.

Declaration

cs-api-definition
protected abstract TableDefinition CreateChildTableDefinition()

Returns

TableDefinition

Events

PropertyChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged