Is there an "empty" data band option?

Stimulsoft Reports.NET discussion
Post Reply
Scottioioio
Posts: 47
Joined: Thu Dec 20, 2012 6:58 pm

Is there an "empty" data band option?

Post by Scottioioio »

I am using a Data Band that is bound to a Data Source. This works great when the Data Source returns one or more records, but when the Data Source returns no records the Data Band shows nothing. Is there a way to configure the Data Band to show some pre-defined text if there are no records in the Data Source?

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Is there an "empty" data band option?

Post by HighAley »

Hello.

You can put other data band with Count Data value equals 1. And set its Condition with next expresion:

Code: Select all

Count(DataBaseband1) == 0
Thank you.
Scottioioio
Posts: 47
Joined: Thu Dec 20, 2012 6:58 pm

Re: Is there an "empty" data band option?

Post by Scottioioio »

That works wonderfully, thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Is there an "empty" data band option?

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.
Post Reply