Can the backcolor vary for any row ?
If yes, how is this done so all coloumns are included?
Thanks, ABB
Printable View
Can the backcolor vary for any row ?
If yes, how is this done so all coloumns are included?
Thanks, ABB
No, I don't think it can. The only property I can see for colour options for the ListItem and SubItems is 'ForeColor'.
Thanks Doogle, global is has to be then.
Regards, ABB
Take a look at this codebank submission.
You could take the ListView control from my CommonControls replacement project.
Click here.
It supports a BackColor (via the "ItemBkColor" event) for the ListItems. (and many other features more)
Thanks Krool and Rhino. I've just downloaded both files and will have a go. Might struggle a bit but here's hoping!
I have both examples working but to be honest can't see how to implement them with what I have.
I populate all the rows before the Form opens, and wanted to assign the color then depending on the source for each row.
The Hidden row thing threw me, and Krool yours is way beyond me!
But thanks for the offer.
1. Welcome to the Forum
2. This is a real old thread you have opened. It would be better if you could start a NEW thread, describe what you are trying to do, and if desired, put a link to this thread in it (or any thread that you think we could view to better understand what you are trying to do).
3. Did not the link provided in post # 4 guide you enough? Is THAT what you are trying to do? That link is self-explanatory, IMO.
Sammi
I have opened a new thread
https://www.vbforums.com/showthread....cture-property
I have also answered query on #4
Regards