Column HEader?????

Stimulsoft Reports.NET discussion
Post Reply
abhi0410
Posts: 47
Joined: Fri Sep 26, 2008 12:42 pm
Location: bombay

Column HEader?????

Post by abhi0410 »

How to show column or hide column header dynimcally from my . CS file?????

i mean to say....

Header1 Header2 Header 3....


Now in my form in window application i have 3 checkbox....if user selects all three checkbox then all header appears and if user selects first two checkbox and uncheck third one then only

Header1 Header2 will appear in the report with data....

Is it possible to do????

Plz reply soon....

Thanks....
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Column HEader?????

Post by Edward »

Hi.

Please use the following code in each BeforePrintEvent of Header1:

Code: Select all

Header1.Enabled =CheckBox1.Checked;
in BeforePrintEvent of Header2:

Code: Select all

Header2.Enabled =CheckBox2.Checked;
and so on.

Thank you.
abhi0410
Posts: 47
Joined: Fri Sep 26, 2008 12:42 pm
Location: bombay

Column HEader?????

Post by abhi0410 »

Thanks...

But i want to clear one thing that checkbox is my .net control and not the stimulsoft checkbox control....

How to do in that case???
abhi0410
Posts: 47
Joined: Fri Sep 26, 2008 12:42 pm
Location: bombay

Column HEader?????

Post by abhi0410 »

and i am really sorry for writing the question in wrong way...

suppose in a Header band, there are 4 column header....

Then How to do disable and enable the column header?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Column HEader?????

Post by Edward »

Hello.

You can do it in the same way as with a header band.

Code: Select all

stiText1.Enabled = checkBox1.Checked;
stiText2.Enabled = checkBox2.Checked;
Thank you.
abhi0410
Posts: 47
Joined: Fri Sep 26, 2008 12:42 pm
Location: bombay

Column HEader?????

Post by abhi0410 »

Thanks,,,,i was able to that...plus i had to create some variable in the report to get the value of check box from the my .CS file.....

Thanks.....
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Column HEader?????

Post by Edward »

You are welcome.

Please let us know if any help is required.

Thank you.
Post Reply