RDLC 报告隐藏空白响应列
我试图显示来自服务器响应的空记录。在该响应对象中,有一个数据数组对象,在该数据数组对象中,有一个记录数组对象。在记录中,有我在 rdlc 中使用的要查看的字段的属性。因此,如果没有记录,我将动态地将字段(数据类型字符串)分配给 string.empty。所以发生的情况是 rdlc 工作正常,但它在表中的标题标签下方显示一个空框。我不想显示空行,而是想在表标题下方不显示任何内容。有没有什么表达式可以隐藏表中的空行?
I am trying to show the empty record which is coming from a Server Response. In that response object there is a data array object and in that data array object there is a record array object.In the record there are properties for the fields that I am using in the rdlc to view. So if there is no record I am dynamically assigning the fields (data type string) to string.empty. So What's happening is rdlc is working fine but its displaying a empty box below the header labels in the table. I dont want to display empty row instead I want to display nothing below the table headers. Is there any expression to hide the empty row in a table?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在行的“属性”中,有一个选项可见性...有三个选项,如 true、false 和表达式...然后选择表达式...您可以分配如下值
In the 'property' of the Row there is one option visibility....there are three option like true, false and expression ...then select expression ..you can assign the values like
以下是 msdn 站点的链接,其中解释了使用 rdlc 控制报表元素的可见性
http://msdn.microsoft.com/en-us/library/dd354976.aspx
如果对您有帮助,请告诉我。
Here is a link to msdn site where they explain controlling visibility of elements of a report using rdlc
http://msdn.microsoft.com/en-us/library/dd354976.aspx
Let me know if it helps you.
您可以使用此表达式隐藏矩阵中的列
you can hide column in matrix by using this expression