RDLC Winfoms C#可见性属性 [英] RDLC winfoms c# visibility property
问题描述
你好,
表达式不适用于Winfoms中的rdlc
= iif(First(Fields!xyz.Value,"dataset")> 0,true,false)
或
= iif(First(Fields!xyz.Value)> 0,true,false)
我的要求是根据上述表达式设置矩形的可见性.
实际上,我想检查数据集是否为空,然后不显示矩形.
矩形包含绑定到数据集中字段的文本框.
请帮助我.
Hello,
Expression is not working for my rdlc in Winfoms
=iif(First(Fields!xyz.Value, "dataset")>0,true,false)
or
=iif(First(Fields!xyz.Value)>0,true,false)
my requirnment is to set the rectangles visibility based on the above expression.
actully i want to check if the dataset is empty then not to display the rectangle.
rectangle contains textboxes bind to fields from dataset.
Please help me.
推荐答案
尝试:
=iif(CountRows("Dataset1") >0, true, false)
可见性表达式.
参考: MSDN:CountRows函数(报告服务) [ ^ ]
for the visibility expression.
Refer: MSDN: CountRows Function (Reporting Services)[^]
这篇关于RDLC Winfoms C#可见性属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!