Interface
IDataObject

Provides unified access to a single data record from a data source.

Definition

Namespace:Telerik.Reporting.Processing

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
public interface IDataObject

Properties

Number

Internal use only

Declaration

cs-api-definition
int Number { get; set; }

Property Value

int

RawData

Gets the actual object that the current IDataObject wraps.

Declaration

cs-api-definition
object RawData { get; }

Property Value

object

The actual data.

Remarks

Depending on the type of the data source the member may refer to a DataRow (when the report is bound to a DataTable or DataSet) or an object (when bound to an IEnumerable).

this[string]

Gets the value of the specified member.

Declaration

cs-api-definition
object this[string member] { get; }

Parameters

member

string

The name of the member

Property Value

object

The value of the member.

Remarks

Depending on the type of the data source the member may refer to a DataColumn (when the report is bound to a DataTable or DataSet) or a public property (when bound to an IEnumerable or a ITypedList).

Methods

GetProperties()

Returns a collection of the available properties for the underlying object. To get the actual data object use RawData.

Declaration

cs-api-definition
[Obsolete("This method is now obsolete. To get the available fields/properties, please check the schema of the data source in the Data Explorer tool window or the data source definition in the source code.")]
PropertyDescriptorCollection GetProperties()

Returns

PropertyDescriptorCollection

A PropertyDescriptorCollection with the properties of the underlying data object.

TryGetValue(string, out object)

Gets the value of the specified member.

Declaration

cs-api-definition
bool TryGetValue(string member, out object value)

Parameters

member

string

The name of the member to get.

value

object

When this method returns, contains the value associated with the specified member, if the key is found; otherwise, null (Nothing). This parameter is passed uninitialized.

Returns

bool

true if the member exists; otherwise false.