Page 1 of 1
Column HEader?????
Posted: Mon Oct 27, 2008 3:08 am
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....
Column HEader?????
Posted: Mon Oct 27, 2008 3:50 pm
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.
Column HEader?????
Posted: Tue Oct 28, 2008 11:59 pm
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???
Column HEader?????
Posted: Wed Oct 29, 2008 12:04 am
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?
Column HEader?????
Posted: Wed Oct 29, 2008 3:37 am
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.
Column HEader?????
Posted: Thu Oct 30, 2008 12:19 am
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.....
Column HEader?????
Posted: Thu Oct 30, 2008 7:54 am
by Edward
You are welcome.
Please let us know if any help is required.
Thank you.