Home All Groups Group Topic Archive Search About

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

Author
19 Dec 2006 1:40 PM
Pieter
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

Author
19 Dec 2006 2:37 PM
lord.zoltar
Pieter wrote:
Show quoteHide quote
> 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.