Hello,
This problem is probably very easy to solve, but the solution is eluding me. Is there any way to set the background or font color of each item in a listview individually?
I have a ListView component on a form displaying data from instances of a class. The only problem is that I want to change the color of certain lines depending on a variable from the instance. There are three possibilities:
The three condition sets are mutually exclusive.
How can I change the color for that line and only that line? I will also accept changing the font color for that line only.
Thank you,
Frank
This problem is probably very easy to solve, but the solution is eluding me. Is there any way to set the background or font color of each item in a listview individually?
I have a ListView component on a form displaying data from instances of a class. The only problem is that I want to change the color of certain lines depending on a variable from the instance. There are three possibilities:
Code:
if (instance meets cond1) then
DisplayData on black background
else if (instance meets cond2) then
DisplayData on grey background
else DisplayData on white background
The three condition sets are mutually exclusive.
How can I change the color for that line and only that line? I will also accept changing the font color for that line only.
Thank you,
Frank