LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Show column names in a table

Solved!
Go to solution

Stupid question time...

 

How do I display the column names in a table on the front panel? I thought by right clicking on the table would give me a selection to display them.

0 Kudos
Message 1 of 7
(2,648 Views)
Solution
Accepted by topic author Eric1977

Hi Eric,

 

right-click the table and select "Visible elements"->"show column headers":check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(2,642 Views)

Thanks Gerd.

 

One more thing, is there a way to highlight the entire row when a user clicks on any field anywhere within the table? Basically, what I want is when a user clicks on any cell in the table, I want that row to highlight.

0 Kudos
Message 3 of 7
(2,630 Views)

Hi Eric,

 

you can set the cell background color of the "Active cell" (read the help for that property!) with a property node.

To get the clicked cell you can use a method of the table to convert mouse coordinates (given by the event structure) to row/column coordinates!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 7
(2,622 Views)

Got it. Using this trick located here, the "Set Cell Value" method wants a value. What do I wire to this? I cannot leave it blank as it is required.

0 Kudos
Message 5 of 7
(2,611 Views)

Hi Eric,

 

as that method is named "Set Cell Value" you have to provide a value which should be written into the given cell of the table. You have to provide a string!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(2,608 Views)

I apologize. I wasn't very clear. I just wanted to highlight the cell without having to pass a value. The ActiveCell property did the trick. Thanks for all your help.

0 Kudos
Message 7 of 7
(2,604 Views)