Do not display one column if all item data is null

Сonversation on different topics
Post Reply
XiaoJun
Posts: 7
Joined: Fri Jun 17, 2011 4:09 am
Location: Indonesia

Do not display one column if all item data is null

Post by XiaoJun »

Hi..anyone can help me??? may i ask?

Is it possible to not display or hide one column even the group header if all data in that column is null??

Thank you,
XJ
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Do not display one column if all item data is null

Post by Andrew »

Hello,

For example you can do it this way:
- Before the starting band building, define in the script that all data in that column is null, and remember this in a variable;
- Set DockStyle = Left for all columns which are placed on the right against the required one.
- By the value of the variable, disable all textboxes in the required column using the Condition.

Thank you.
XiaoJun
Posts: 7
Joined: Fri Jun 17, 2011 4:09 am
Location: Indonesia

Do not display one column if all item data is null

Post by XiaoJun »

Hello Andrew,

thanks for your advice, your advice really helped me.....Finally my problem has been solved. :)
I followed the step one for creating a variable to define the null, but i can not set Dock Style = left because that make their arrangement of column become very messy.
I using this way :
- define a variable in the script that if all data in that column is null
- in the required column set condition : if variable is null then disable
- two textbox (one is more longer till hide the required null column) in column beside the required one
- and setting condition for the two textbox : if variable is not null then disable the longer one and the opposite

I don't know is it the best way, but this can solved my problem. :amazed:

XJ

Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Do not display one column if all item data is null

Post by Ivan »

Hello,

Let us know if you need any additional help.

Thank you.
XiaoJun
Posts: 7
Joined: Fri Jun 17, 2011 4:09 am
Location: Indonesia

Do not display one column if all item data is null

Post by XiaoJun »

Thanks Andrew & Ivan :amazed:
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Do not display one column if all item data is null

Post by Andrew »

Have a nice day!
Post Reply