如何在rdlc报告中动态隐藏列。 [英] How to hide columns dynamically in rdlc report.

查看:115
本文介绍了如何在rdlc报告中动态隐藏列。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



如果数据为空或0我不想隐藏列,所以我在rdlc报告中将条件放在列上。



我尝试了什么:



如果数据为空,我不想隐藏列或0所以我把条件放在rdlc报告的栏目上。



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





但我没有工作,所以还有其他选择吗。



谢谢提前。

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.

推荐答案

使用以下步骤希望它能帮到你



1.检索数据时使用nullif(ColumnName,'0'),以便在结果集中零值将为null



2.在rdlc选择列可见性时单击您的列。



3.select在表达式上显示或隐藏基础



4.use expression = IsNothing(Max(字段!DisCH1.Value,DataSet1))然后按确定



done。
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.


这篇关于如何在rdlc报告中动态隐藏列。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆