How do I get results to alternate coloring/shading in a listview plus one odd ball of a different color.
Posted on 2005-05-07
thanks to Desp (a member of this forum) I am getting alternating colors perfectly; however, if I knew the exact position, could I make it, and only it, a different color from the others. I want to make it stand out, so that it is easily recognizable.
position 0 - 11 alternate between white and light blue, but at position 12, I'd like it to be yellow, and then the remainder be the same alternating colors of white and light blue. How do I do that?
Regards and thanks in advance!
i = (i + 1)
li = lvQualificationsStandings.Items.Add(i)
If dr.Item("QualID") <> Nothing Then
If i Mod 2 = 0 Then
li.BackColor = Color.White
li.BackColor = Color.LightBlue