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.
10-04-2012 02:57 PM
Using the property node of a table, how do you change the background color for the entire table?
Thanks.
Solved! Go to Solution.
10-04-2012 03:03 PM
Check out the advanced help of the "ActiveCell" property:
The following table lists example values for this property.
Row | Column | Result |
---|---|---|
–2 | 0 | Selects all cells of the first column, including the column header. |
–2 | –2 | Selects all rows and columns, including column headers. |
–1 | 0 | Selects the header of the first column. |
–1 | –2 | Selects the headers of all columns. |
Set the ActiveCell to -2,-2 then set the activecell -> cell background color
Is that what you are looking for?
10-04-2012 03:21 PM
Yep that worked great! Is there a way to turn off the selection within a table. I'm just using it for status only.
Thanks again.
10-04-2012 03:26 PM
Are you using a table, or a multi-column list box? By selection, do you mean a highlighted row? If so, then I think you're using a multi-column listbox and you might be better off using a table indicator. If I'm right, but you still want to use the multi-column listbox, try setting the Disabled property to 1 (Disabled).
10-04-2012 03:29 PM
Try setting the "Disabled" property to "Disabled" or "Disabled and Greyed Out". Be mindful of the end user, they might like having the ability to select and copy/paste out of the table.
10-04-2012 03:30 PM
Good point. Thanks a lot for your help.