Interface IDataObject
Provides unified access to a single data record from a data source.
Namespace: Telerik.Reporting.Processing
Assembly: Telerik.Reporting.dll
Syntax
public interface IDataObject
Properties
Item[String]
Gets the value of the specified member.
Declaration
object this[string member] { get; }
Parameters
System.String
member
The name of the member |
Property Value
System.Object
The value of the member. |
Remarks
Depending on the type of the data source the member may refer to a System.Data.DataColumn (when the report is bound to a System.Data.DataTable or System.Data.DataSet) or a public property (when bound to an System.Collections.IEnumerable or a System.ComponentModel.ITypedList).
Number
Internal use only
Declaration
int Number { get; set; }
Property Value
System.Int32
|
RawData
Gets the actual object that the current IDataObject wraps.
Declaration
object RawData { get; }
Property Value
System.Object
The actual data. |
Remarks
Depending on the type of the data source the member may refer to a System.Data.DataRow (when the report is bound to a System.Data.DataTable or System.Data.DataSet) or an object (when bound to an System.Collections.IEnumerable).
Methods
GetProperties()
Returns a collection of the available properties for the underlying object. To get the actual data object use RawData.
Declaration
[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
System.ComponentModel.PropertyDescriptorCollection
A System.ComponentModel.PropertyDescriptorCollection with the properties of the underlying data object. |
TryGetValue(String, out Object)
Gets the value of the specified member.
Declaration
bool TryGetValue(string member, out object value)
Parameters
System.String
member
The name of the member to get. |
System.Object
value
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
System.Boolean
true if the member exists; otherwise false. |