ComponentOne AutoComplete for ASP.NET Web Forms
C1.C1Report.4 Assembly / C1.C1Report Namespace / C1Report Class / NoData Event
Example

In This Topic
    NoData Event
    In This Topic
    Fired when the control starts rendering a report and the data source is empty.
    Syntax
    'Declaration
     
    Public Event NoData As System.EventHandler
    public event System.EventHandler NoData
    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).

    Example
    The code below cancels a report when it has no data:
    private void c1r_NoData(object sender, EventArgs e)
    {
        _c1r.Cancel = true;
    }
    See Also