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

I wan't to hide column if data was null or 0 so i was put condition on column in rdlc report.

What I have tried:

I wan't to hide column if data was null or 0 so i was put condition on column in rdlc report.

=iif(Fields!DisCH1.Value = 0, false, true)


but i was not work so is there any another option for that.

thanks in advance.
Posted
Updated 17-Mar-16 4:02am

1 solution

use the below step hope it will help you

1. while retrieving your data use nullif(ColumnName,'0') so that in your result set zero values would be null

2.right click on your column in rdlc select column visibility.

3.select Show or hide base on an expression

4.use expression =IsNothing(Max(Fields!DisCH1.Value, "DataSet1")) then press ok

done.
 
Share this answer
 
Comments
Sagar Tajpara 18-Mar-16 6:54am    
Thanks a lot ... It's Work. but i have one another problem. If that column was hide, instead of column display blank space between two column.

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