LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Table Hide Column

Has anyone found a way to hide a table column?
 
I know you can set the column wide to 0 but this does not hide it totally.  It still shows the border lines which looks funny when you hide more than one column in a row.
 
I am creating a standardize test software and the columns are always the same location but depending on the analysis or number of channels tested I would like to hide the irrelevant columns.
 

If anyone has a solution, I would appreciate the help.

 
I thought of creating a table that is hidden and then copy the columns I need but this would be annoying.
 
Thanks,
Paul
 
PS.  Sometimes I wished I was still using VB that has much more flexaibility.
 
0 Kudos
Message 1 of 8
(5,387 Views)
Two possible solutions....
 
1. Like you mentioned, size the column to zero. In order to make the column separators not look too funny, you could turn off the ATTR_HORIZONTAL_GRID_VISIBLE of all the cells in the column you want to hide.
 
2. The tree has hidable columns, but doesn't support different cell types such as rings, numerics, etc. If you just need to display text in those columns, then you can use a tree and hide certain columns.
 
Hope this helps,
 
- jared
 
 
0 Kudos
Message 2 of 8
(5,364 Views)

Thank you for your idea.  The table gets harder to follow without grid lines and the tree is a neat idea but I am using the table because I format the columns differently and highligh data that is out of limit.

Thanks again for your ideas.

Paul

I just do not understand why NI would not just let the lines overlap when the width is set to 0.  For some reason the with starts at 3 pixels up.

0 Kudos
Message 3 of 8
(5,362 Views)
You don't have to hide the grid lines when the table column is not 'hidden' (sized to zero). You could hide the column separator when the column size is zero, and then show them when the column size is not zero.
0 Kudos
Message 4 of 8
(5,356 Views)
Hey Paul,

I'm sorry we don't have a specific solution for this problem. However, you can submit a product suggestion for this particular feature here.  One of the things that would be useful is if you could list your particular use case so we can understand why this feature would be helpful.
Pat P.
Software Engineer
National Instruments
0 Kudos
Message 5 of 8
(5,343 Views)

jared wrote:
1. Like you mentioned, size the column to zero. In order to make the column separators not look too funny, you could turn off the ATTR_HORIZONTAL_GRID_VISIBLE of all the cells in the column you want to hide.

Jared, it is apparently illegal to size a column to zero.  From the help:

Valid Range: 1 to 32767
0 Kudos
Message 6 of 8
(4,543 Views)

By the way, the attribute ATTR_COLUMN_VISIBLE has been added in CVI2012 Smiley Wink

Message 7 of 8
(4,540 Views)

@Wolfgang wrote:

By the way, the attribute ATTR_COLUMN_VISIBLE has been added in CVI2012


Hurray!  This will make it much show columns, particularly those that are interspersed next to visible ones.

0 Kudos
Message 8 of 8
(4,521 Views)