September 16, 2008 at 3:32 am
I want to show a column in the table only if a data comes for that column else i want to hide that column.
e.g. i have a table having three columns Name, Address and Phone Number.
Now if for a corresponding name ph no is not there then the column ph no. should not be shown. should hide.
let the name be my report parameter.:)
any1 has ne idea .........
September 16, 2008 at 4:53 am
Hello,
You can set the Hidden property to True or False based on the result of an IIf expression.
Take a look at the following article that describes something similar (setting the Colour, rather than the Hidden property): http://www.c-sharpcorner.com/UploadFile/PennCreative/SSRS_Expressions_Intro01062008171617PM/SSRS_Expressions_Intro.aspx
Regards,
John Marsh
www.sql.lu
SQL Server Luxembourg User Group
September 16, 2008 at 5:46 am
In the properties of your textbox, go to the Visibility > Hidden property and add the expression:
=iif(Fields!YourField.Value=0,True,False)
You can change the expression as your requirement, currently it is checking for zero value....
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply