Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
Expression is not working for my rdlc in Winfoms

=iif(First(Fields!xyz.Value, "dataset")>0,true,false)
or
=iif(First(Fields!xyz.Value)>0,true,false)

my requirnment is to set the rectangles visibility based on the above expression.
actully i want to check if the dataset is empty then not to display the rectangle.
rectangle contains textboxes bind to fields from dataset.
Please help me.
Posted

1 solution

Try:
VB
=iif(CountRows("Dataset1") >0, true, false)

for the visibility expression.

Refer: MSDN: CountRows Function (Reporting Services)[^]
 
Share this answer
 
Comments
rohit24c 14-Jun-12 1:27am    
Thanks Sandeep you code really works!!!
Sandeep Mewara 14-Jun-12 2:13am    
Welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900