Hide Controls dynamically in a report
Posted: Mon Jun 01, 2009 4:06 am
Hi All,
I've few control on the stimulsoft report , which I want to hide (on some condition) panels or any other container dynamically before displaying the report.
As of now I've followed the following approach:
Here controls are successfully hidden. But there comes an empty space after hiding the panel.
I want that containers/controls below this panel should move up automatically to fill up the empty space.
For example, in asp.net.... we use
to hide a control and there is no empty space after hiding.
Moreover, I also want to know that "can we apply the hiding logic at design (in stimulsoft designer) time also?".
Thanks & Regards,
Rajesh Tanwar
I've few control on the stimulsoft report , which I want to hide (on some condition) panels or any other container dynamically before displaying the report.
As of now I've followed the following approach:
Code: Select all
StiComponentsCollection components = report.GetComponents();
foreach (StiComponent item in components)
{
if ((item is StiPanel) && (item.Name.ToLower() == "panel4"))
{
item.Enabled = false;
}
}
I want that containers/controls below this panel should move up automatically to fill up the empty space.
For example, in asp.net.... we use
Code: Select all
controlId.visible = false
Moreover, I also want to know that "can we apply the hiding logic at design (in stimulsoft designer) time also?".
Thanks & Regards,
Rajesh Tanwar