From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-02-2022 11:10 AM - edited 05-02-2022 11:10 AM
So basically I would like to have headers on the first two rows.I want these headers to be constant so that they remain on the table even when I'm running the code. I tried using multicolumn listbox and I kept getting only 1 option. Any idea? suggestion?
Thanks,
GRCK5000
Solved! Go to Solution.
05-02-2022 11:19 AM - edited 05-02-2022 11:20 AM
Tables are just 2D arrays of strings. You have full control on what's in any of the cells. No need to even use the headers. You can even create multiline cells.
05-02-2022 11:39 AM
Quick example:
You can easily change the font style and background color of the headers (or any cell you like)
05-02-2022 12:05 PM - edited 05-02-2022 12:07 PM
Thanks a lot Mr. Altenbach. As soon as you told me that a table is nothing but a 2D array. I worked hard and I was able to accomplish what I wanted. Your codes are so insane. I have a very very long way to go to get on your level. Thank you very much!
LabView community/forum definitely needs you.
05-03-2022 10:51 AM
That solution will work well enough if you don't need to scroll your table. If you do you can either try to use the property nodes to read what the top left cell is, and then set the values based on that, and any cell background color.
Or you can use the normal column headers, but have multiple rows of text in each cell. I couldn't get to setting the column values from the front panel. But using property nodes I could make multiple rows of text for a Table or a Multicolumn Listbox and it would display it properly.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-03-2022 11:03 AM
Also, if the headers are truly static, you could even use the caption. 😄
05-03-2022 12:11 PM
Thanks Hoovahh, the CAN master, for the suggestion. Yeah, Mr. Altenbach would use anything to get the results he wants. If he cannot use property nodes, he'll come up with something. 😅
05-03-2022 12:14 PM
I know for sure you can use anything to get the results you want. I will not doubt what you can do. 😅