Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I had a question, like I had a table with like 6 rows and a textbox in my report for which I am getting the values from two different DataSets one for table and other for textbox The table has columns B T M C.

What I want here is if my textbox says B my final report should hide all the columns except B automatically, is it possible to achieve? If so can some give me some idea?

Thanks
Posted
Updated 16-Mar-11 12:15pm
v2

1. Select the table.
2. In the grouping pane, click the triangle button and check “Advanced Mode”.
3. In the Column Groups, select the (Static) item which is corresponding to the B column in the table.
4. Specify the Hidden property to the expression like
=NOT (ReportItems!Textbox1.Value="B")
5. Repeat step 3 step 4 to change the Hidden property of the other columns.
 
Share this answer
 
Comments
srinivaskumar.m 27-Sep-17 11:55am    
Thanks makwith9789!!!

Useful in Column Group of Matrix ,to hide if that column value is something as per condition.
I didn't understand very well your problem, but If you want to hide a control depending an expression, follow the next steps.

Right click over your control -> Properties -> Visibility -> Expression
And then do the conditions you want to do to hide it.

Also check this link.

SQL Reporting Services with Dynamic Column Reports[^]


If you want to hide it by always, Initial visibility = Hidden
 
Share this answer
 
Comments
makwith9789 17-Mar-11 8:54am    
Thanks for the link

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