Reputation: 2825
I have an rdlc file that has some text boxes. I have a flag value in my dataset. I want to check that flag if it is 1 then show the text box and if it is 0 then hide the text box. Any ideas??
Fields!ConsentFlag.Value, "DSConsentRelease"
This is the field I want to check.
Upvotes: 2
Views: 10632
Reputation: 1
=First(Fields!ConsentFlag.Value, "dsjobsheet")=1 <---- Only replace 1 here your condition. this code only put Properties->visibility->expression. Ex. 1 is Visible And 0 is Invisible
Upvotes: -1
Reputation: 1842
set the textbox's visibility expression to
=iif(First(Fields!ConsentFlag.Value, "dsjobsheet")=1,false,true)
Upvotes: 2
Reputation: 108947
set the textbox's visibility expression to
=iif(Fields!ConsentFlag.Value == 1,true ,false)
Upvotes: 6