New to Telerik Reporting? Start a free 30-day trial

Provides the abstract base class for all data source components in Telerik Reporting that supply data to report items.

This class serves as the foundation for specialized data source implementations like SqlDataSource, ObjectDataSource, CsvDataSource, and others. Derived classes must implement specific data retrieval logic while inheriting common functionality for naming, calculated fields, and component lifecycle management. All data source components support calculated fields for custom data transformations and provide standardized interfaces for data binding operations.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
public abstract class DataSource : Component, IDataSource

Inheritance: objectMarshalByRefObjectComponentDataSource

Derived Classes: CsvDataSourceCubeDataSourceJsonDataSourceObjectDataSourceBaseServiceDataSourceSqlDataSource...

Implements: IDataSource

Constructors

Initializes a new instance of DataSource.

C#
protected DataSource()

Properties

Gets the calculated fields collection.

C#
public CalculatedFieldCollection CalculatedFields { get; }

Gets or sets the description of the DataSource component.

C#
public string Description { get; set; }
Property Value:

The description of the DataSource component.

Name

string

Gets or sets the name of the DataSource component.

C#
[Browsable(false)]
public string Name { get; set; }
Property Value:

The name of the DataSource component.