-
Jun 1st, 2013, 10:56 PM
#1
Thread Starter
Frenzied Member
listview row color
Can the backcolor vary for any row ?
If yes, how is this done so all coloumns are included?
Thanks, ABB
-
Jun 1st, 2013, 11:27 PM
#2
Re: listview row color
No, I don't think it can. The only property I can see for colour options for the ListItem and SubItems is 'ForeColor'.
-
Jun 1st, 2013, 11:33 PM
#3
Thread Starter
Frenzied Member
Re: listview row color
Thanks Doogle, global is has to be then.
Regards, ABB
-
Jun 2nd, 2013, 09:01 AM
#4
Re: listview row color
Take a look at this codebank submission.
-
Jun 2nd, 2013, 03:31 PM
#5
Re: listview row color
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)
Last edited by Krool; Jun 2nd, 2013 at 03:35 PM.
-
Jun 2nd, 2013, 07:39 PM
#6
Thread Starter
Frenzied Member
Re: listview row color
Thanks Krool and Rhino. I've just downloaded both files and will have a go. Might struggle a bit but here's hoping!
-
Jun 2nd, 2013, 08:59 PM
#7
Thread Starter
Frenzied Member
Re: listview row color
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.
-
Jan 18th, 2021, 05:46 AM
#8
Member
Re: listview row color
Originally Posted by Krool
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)
Hello all,
I searched the forum. I have not found any example code to use the above referred method to change the backcolor of any desired row.
Can someone help me?
-
Jan 18th, 2021, 08:16 AM
#9
Re: listview row color
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
Sam I am (as well as Confused at times).
-
Jan 20th, 2021, 03:19 AM
#10
Member
Re: listview row color
Originally Posted by SamOscarBrown
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|