Using Events of the Report
The Report object exposes these events:
Event | Description |
---|---|
ItemDataBinding | Fires just before the report is bound to data. |
NeedDataSource | Fires when the report does not have data source set. |
ItemDataBound | Fires just after the report is bound to data. |
The example below shows the NeedDataSource event assigning the report DataSource at runtime. This event only fires when the DataSource is null.