Select the Object for which you want to set visibility on Run Time. Then in Property section there in Property name 'VISIBILITY', in that set HIDDEN Expression as given below:
=iif(Fields!test.Value.ToString().Equals("true"),true,false)
If this expression is TRUE then that object will not be visible. By default its HIDDEN value is set to FALSE.
So if certain object need to be made invisible then pass "true" in dataset, which can be checked in if condition & hence HIDDEN property can be changed accordingly.
In Above example i have passed value in 'test'. If 'test' is true, then object will be not be visible and if 'test' is false then object will be visible.
=iif(Fields!test.Value.ToString().Equals("true"),true,false)
If this expression is TRUE then that object will not be visible. By default its HIDDEN value is set to FALSE.
So if certain object need to be made invisible then pass "true" in dataset, which can be checked in if condition & hence HIDDEN property can be changed accordingly.
In Above example i have passed value in 'test'. If 'test' is true, then object will be not be visible and if 'test' is false then object will be visible.
No comments:
Post a Comment