New to Telerik ReportingStart a free 30-day trial

Represents a data column definition.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
public class DataColumn

Inheritance: objectDataColumn

Constructors

Creates a new instance of DataColumn.

C#
public DataColumn()

Creates a new instance of DataColumn.

C#
public DataColumn(string name, SimpleType columnType)
Parameters:namestring

The name of the column. This name should be used later when referring a field from this column in expressions.

columnTypeSimpleType

The type of the column.

Properties

Name

string

Gets or sets the name of the field definition. Used to access the field in expressions.

C#
public string Name { get; set; }
Remarks:

Field names must be unique in the context of a single report. The name must be a valid identifier - may contain only digits (0-9), letters (a-z, A-Z), and underscore sign (_). Must begin with a letter or underscore.

Gets or sets the type of the field.

C#
public SimpleType Type { get; set; }
Remarks:

Determines the type of the values. Acceptable values for each type are listed in SimpleType. The default parameter type is String.

Events

PropertyChanged

PropertyChangedEventHandler

C#
public event PropertyChangedEventHandler PropertyChanged