LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 2010 table multi-line input & autosize row height

My row height is not adjusting for the numer of lines in a row. It will if I toggle "autosize row height" off and then back on but what a pain. I even tried with table properties to programatically turn it off and then back on. No joy.

 

I have a column that can have a string with \n to have multiple rows in a single cell. It displays properly only after I do the toggle thing.

 

T->Multi-line input true

T->Autosize row height

 

Norm

0 Kudos
Message 1 of 5
(5,234 Views)

Hi Viper,

 

Would you mind posting your code?   I would to see how you are building your tables.

 

Thanks!

 

Starla T. 

0 Kudos
Message 2 of 5
(5,215 Views)

I have the same problem.

Create a 2D string array filled with multiline strings. Connect this array with a table indicator.

Run the vi. The row heights remained unchanged.

I think this feature is only implemented for the case when the user changes a cell value manually.

It would be great if this autosize row height function will work in the case when the table gets the values from the block diagramm.

0 Kudos
Message 3 of 5
(5,045 Views)

Here is something I found that may help...

0 Kudos
Message 4 of 5
(5,036 Views)

Found a simple solution: Use the property node of the table, first set AutoRowHt=False, then set the Value to the table strings, then set AutoRowHt=True.  This programatically "toggles" the system in the way it likes and thus adjusting the row height.  Just put these three in one node, as they are executed from top to bottom.

0 Kudos
Message 5 of 5
(4,107 Views)