RDLC in C # controls the display and hiding of a column

Online God's reply:
The rdlc report adds a boolean parameter, such as showText.
Set the Hidden property value of the control to be hidden to: = IIf (Parameters! ShowTex.Value, true, false).
Then when the checkbox is unchecked in the program, the parameter showText is set to True, it is not displayed, and False is displayed.
 
Use in the system:
1. Add parameter IsEnable (used to control display or hide)
2. On the RDLC page, on the column to be controlled, right-click, column visibility ..., hide or show based on the expression
3、输入 IIF(Parameters!IsEnable.Value,false,true)。
4. Note here. When the IsEnable parameter is True, the column is not displayed, and when it is False, the column is displayed.
 

Guess you like

Origin www.cnblogs.com/masonblog/p/12726778.html