Fired when the control starts rendering a report and the data source is empty.

Namespace:  C1.C1Report
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public event EventHandler NoData
Visual Basic
Public Event NoData As EventHandler

Remarks

You can use this event to cancel rendering a report when the source recordset is empty.

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 following code cancels a report when it has no data:

Copy CodeVisual Basic
Private Sub c1r_NoData(ByVal sender As Object, ByVal e As System.EventArgs) Handles c1r.NoData
    c1r.Cancel = True
End Sub
Copy CodeC#
private void c1r_NoData(object sender, EventArgs e)
{
    c1r.Cancel = true;
}

See Also