LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is the first cell in my listbox not colored properly?

So I am trying to color each row in my listbox as such where the colors are defined in an array fille with color box constant but for some reason the first element is not getting colored properly. Does anybody know why?

 

Asasafuchi_0-1737107931091.pngAsasafuchi_1-1737107947710.png

 

0 Kudos
Message 1 of 4
(109 Views)

Is the first row selected? This would make the first row appear in another color.

Right-Click listbox -> Selection Mode -> Highlight entire Row.

0 Kudos
Message 2 of 4
(87 Views)

Hi, no the first row isn't selected. I managed to solve the issue by changing the data type of the listbox from scalar to array. But I would still like to know why it didn't work in the first place. What did this change to exactly? 

0 Kudos
Message 3 of 4
(81 Views)

@Asasafuchi wrote:

Hi, no the first row isn't selected. I managed to solve the issue by changing the data type of the listbox from scalar to array. But I would still like to know why it didn't work in the first place. What did this change to exactly? 


No, is selected. Try it this way:

lb.png

For me it works:

Screenshot 2025-01-17 13.44.44.png

Message 4 of 4
(72 Views)