[]
        
(Showing Draft Content)

C1.WPF.FlexReport.C1FlexReport.NoData

NoData Event

Occurs when the report starts rendering and the main report data source is empty.

Namespace: C1.WPF.FlexReport
Assembly: C1.WPF.FlexReport.4.6.2.dll
Syntax
public event EventHandler NoData
Returns
Type Description
EventHandler Occurs when the report starts rendering and the main report data source is empty.
Remarks
<p>You can use this event to cancel rendering a report when the source recordset is empty.</p>
<p>If you don't cancel the report, it will be rendered as an unbound report (a self-contained report 

with no underlying data).

Examples

The code below cancels a report when it has no data:

private void c1r_NoData(object sender, EventArgs e)
{
    _c1r.Cancel = true;
}