Listview colors

  • Thread starter Thread starter Salvatorea2000
  • Start date Start date
S

Salvatorea2000

Guest
Hi there,

I work a lot with listviews.
There's one thing i can't get done.

I want to have the listviewrows colored.

The rowcolors must look like this:

Red
Blue
Red
Blue
etc.

does anyone have a idea how to get this?

tx.
 
You can't do it. Each control has only a single set of properties so there is no way to have the .backcolor property be a different value for each row of the list. If this is critical, try using a subform rather than a listbox. With ConditionalFormatting, you can color the subform rows differently.
 
Pat Hartman said:
You can't do it. Each control has only a single set of properties so there is no way to have the .backcolor property be a different value for each row of the list. If this is critical, try using a subform rather than a listbox. With ConditionalFormatting, you can color the subform rows differently.

Pat,

Thanx for replying.

I think you are talking about a listbox in stead of a listview.

Is there any way to do this in a listview?
 
I don't think you can do it. You would need a .backcolor property value for each row.
 
This is an ACCESS forum. If you want help on VB.Net controls you should probably try a different forum.
 

Users who are viewing this thread

Back
Top Bottom