Wednesday, March 7, 2012

RS Howto: TextBox.Hidden = True When TextBox.Value = ""?

Hi,
Is there a way to link the Hidden-property of a Textbox on a Reporting
Services Report to it's Value?
When the Value is empty (""), then I want the TextBox be Hidden. In case you
don't ide the Textbox, there is still white space taken.
Now I have to check in every Hidden-property of the Value of my datasource
is empty or not, but I woudl like to have some general expression that I can
copy paste to every Textbox...
Does anybody knows how to do this?
Thanks a lot in advance, any help will be really appreciated...
PieterPieter wrote:
> Hi,
> Is there a way to link the Hidden-property of a Textbox on a Reporting
> Services Report to it's Value?
> When the Value is empty (""), then I want the TextBox be Hidden. In case you
> don't ide the Textbox, there is still white space taken.
> Now I have to check in every Hidden-property of the Value of my datasource
> is empty or not, but I woudl like to have some general expression that I can
> copy paste to every Textbox...
> Does anybody knows how to do this?
> Thanks a lot in advance, any help will be really appreciated...
> Pieter
Hmmm... you could try adding an event handler for when the text
changes. In that handler, check to see if the text in the text box is
"". Then do your hiding if necessary.

No comments:

Post a Comment