Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

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

$
0
0

Dear Members,

I am using StimulSoftReports.Ultimate_2013.1and 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




Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>