LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

alternate row color for every other row in table

I must be missing something but I'm looking for a way to get a table with alternating row colors in LabView 6.1 (e.g. white - gray like in Excel).

Thanks in advance,
Juergen
0 Kudos
Message 1 of 17
(5,198 Views)
You can use table Property Node get what you want done. This example vi shows what you need to do.
0 Kudos
Message 2 of 17
(5,198 Views)
Thank you. Yep I got the VI from you modified to do what I want I was just hoping there might be an easier way.
In my case the size of the table is changing and thus to keep the alternate row color up for added rows might be difficult sometimes.

Thanks again,
Juergen
0 Kudos
Message 3 of 17
(5,198 Views)

Hello Aderogba

 

I need to do the same thing, create a table with alternated colors for rows. The link that you posted is no longer available, do you still have the VI?

 

Thanks

 

Dan07

0 Kudos
Message 4 of 17
(4,756 Views)

Dan,

 

Here is an example of a AE that controls a table.  It would need modification for your exact application but it should give you som good examples of various table properties.


"Should be" isn't "Is" -Jay
Message 5 of 17
(4,746 Views)

Thanks.

 

I modified the code and it will work for my application.

 

Dan07

0 Kudos
Message 6 of 17
(4,738 Views)

Jeff,

 

Is there perhaps an update of this VI?  Seems like pieces are missing with LabVIEW 2014.

 

Thanks,

Thys

0 Kudos
Message 7 of 17
(4,000 Views)

Wow, a 5 and a half year bump and I saw it.

 

I never encluded some dependancies on that example (wasn't allowed to give away some features of the system)  However, it does show how to set background colors on active rows using the property nodes available for a table

 

just loop on rows set active and chose a color based on loop index (Remainder of i Mod 2 would set alternate rows)


"Should be" isn't "Is" -Jay
Message 8 of 17
(3,990 Views)

Haha yes -- perhaps you need another hobby eh 😉   Thanks Jeff, appreciate the feedback and insight.

0 Kudos
Message 9 of 17
(3,981 Views)

Hmmm... asking for my grade school fees back -- clearly I have learned nothing.

 

Please look at the following VI.  I'm not selecting the row correctly for the alternate colouring.  Please rub my nose in my error!

 

 

 

 

 

0 Kudos
Message 10 of 17
(3,959 Views)