I have a report viewer, and in a given circumstance, I want to change the visibility of a textbox inside the report viewer. I already changed the name of the textbox, but I cant access the textbox from outside.
我有一个报表查看器,在给定的情况下,我想更改报表查看器中文本框的可见性。我已经更改了文本框的名称,但我无法从外部访问文本框。
I tried this (which not compile):
我试过这个(不编译):
myReportViewer.txbPI.Visible = false
What should I do please?
我该怎么办?
Thanks.
谢谢。
1 个解决方案
#1
2
You could add an expression for the Hidden
property of the textbox and hide it based on the value of a data item (if you bind the report to a data source) or report parameter.
您可以为文本框的隐藏属性添加表达式,并根据数据项的值(如果将报表绑定到数据源)或报表参数隐藏它。
#1
2
You could add an expression for the Hidden
property of the textbox and hide it based on the value of a data item (if you bind the report to a data source) or report parameter.
您可以为文本框的隐藏属性添加表达式,并根据数据项的值(如果将报表绑定到数据源)或报表参数隐藏它。