Class ReportDataset
ReportDataset is used internally by the reporting engine.
Allow navigation in a IDataReader, using a two record buffer, so you can go back one record, but
not two. The navigation is done forward, and does not consume memory (like IDataReader).
Inheritance
ReportDataset
Implements
IXmlSerializable
Assembly: Reportman.Reporting.dll
Syntax
public class ReportDataset : DataTable, IComponent, IDisposable, IServiceProvider, IListSource, ISupportInitializeNotification, ISupportInitialize, ISerializable, IXmlSerializable
Constructors
ReportDataset()
Declaration
Fields
ColumnSizes
Declaration
public SortedList<string, int> ColumnSizes
Field Value
OnCreateTable
Declaration
public ReportDataset.CreateTableEvent OnCreateTable
Field Value
OnUpdateData
Declaration
public ReportDataset.UpdateDataEvent OnUpdateData
Field Value
OnUpdateDataAsync
Declaration
public ReportDataset.UpdateDataEventAsync OnUpdateDataAsync
Field Value
UpdateColumns
When a DataReader is assigned, by default columns in the DataTable are created from datareader information,
you can turn off the column creation setting the property to false, that is useful to enhace performance when
you assign diferent DataReaders but with the same columns
Declaration
public bool UpdateColumns
Field Value
Properties
Active
Indicates if a DataReader have been assigned, this is a read only property
Declaration
public bool Active { get; }
Property Value
CurrentReader
This is the main property of the class, you must assign it to provide data to the DataTable.
One record is fetched (if available) when you assign this property.
Declaration
public IDataReader CurrentReader { get; set; }
Property Value
CurrentRow
Returns current active row, if you never call Prior, it's the last fetched row in the DataReader
Declaration
public DataRow CurrentRow { get; }
Property Value
CurrentRowCount
Declaration
public int CurrentRowCount { get; }
Property Value
CurrentView
This is the main property of the class, you must assign it to provide data to the DataTable.
One record is fetched (if available) when you assign this property.
Declaration
public DataView CurrentView { get; set; }
Property Value
Eof
Returns true when there are no more records to fetch, or also when the assigned DataReader does not returned any data
Declaration
Property Value
OtherRow
Because there is a two record buffer you can access the row that is not active
Declaration
public DataRow OtherRow { get; }
Property Value
ViewFilter
Declaration
public object[] ViewFilter { get; set; }
Property Value
Methods
First()
Go to first record only for inmemeory views
Declaration
Next()
Moves to the next record in the internal DataReader, storing the contents in the DataTable.
If you called Prior, then only changes the row returned by CurrentRow
Declaration
Returns
Prior()
Moves to the prior record in the DataTable, you can only go back one record
Declaration
Returns
Events
OnDataChange
Assign this event if you are interested in knowing when the current record data changes
Declaration
public event DataChange OnDataChange
Event Type
Implements
System.Xml.Serialization.IXmlSerializable