locked
Stimulsoft- Display "No Records Found" message - When "Databand" control is Empty RRS feed

  • Question

  • User-1284851152 posted

    Dear Members,

    I am using StimulSoftReports.Ultimate_2013.1 and I have come across an issue while generating the report .

    REQUIREMENT:

    • In Report file,I have placed a textbox over the Databand control.
    • Here, i need to display the textbox with message "No Records Found" when DataSource returns no records to the Data band control. 

    ISSUE:

          I have implemented with the following code in "EndRender event" of the Report and "BeforePrint event" of the Page. But textbox is not visible on both scenerio(Databand is empty/not empty)

    if(Totals.Count(DataBand1)>0)
    {
       TextMessage.Enabled=false;
    }
    else
    {
       TextMessage.Enabled=true;
    }

    Can anyone help me to sort out the issue. If my explanation is not clear please let me know.


    Thanks,

    Nagaraj.S



    Tuesday, July 30, 2013 2:33 AM

Answers

All replies