LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

table control change display format

Solved!
Go to solution

I have a table in my VI which display some information. however, the number of columes is too many(about 20) and the number of Row is only 5. So I want to change the display format:

original table

Name    Age       Sex......

Tian       30         female

Song      23         male

 

After changed:

 

Name      Tina        Song

Age           30           23

Sex           female     male

 

Another question. The information in colums is too much. some of them have 10 characters, is table control have any property to change the colume width to accommodation them automatically?

0 Kudos
Message 1 of 4
(2,911 Views)
Solution
Accepted by topic author song403

Transpose your 2-D array.

 

For column widths, there is a function called Get Text Rectangle.  Use that on each element of your 2-D array in the column of interest.  Use the maximum value, then set your column width to that.

0 Kudos
Message 2 of 4
(2,905 Views)

,

Where can I find the function you mentioned?

0 Kudos
Message 3 of 4
(2,890 Views)
On the array palette. Haven't you ever used quick drop or the search button that's on the functions palette?
0 Kudos
Message 4 of 4
(2,873 Views)