ListView Items coloring

  • Thread starter Thread starter Paja via .NET 247
  • Start date Start date
P

Paja via .NET 247

Hi all, I've got problem with ListView in VB.NET. I want to colorlines (odd and even with different colors - gray and white). I'musing item.backcolor property which works fine, but... If Iclick on the listview outside the items when current line isgray, it will unselect and remains white! Also listening onselectindexchange or mousedown or whatever on listview doesn'thelp. The problem probably is that all these methods are calledbefore the unselection is done :( It would be great to telllistview that it should apply backcolor setting of an itemduring unselection... Does anyone know some solution?
 
Paja via .NET 247 <[email protected]>'s wild thoughts
were released on Sun, 31 Oct 2004 03:46:57 -0800 bearing the
following fruit:
Hi all, I've got problem with ListView in VB.NET. I want to color lines (odd and even with different colors - gray and white). I'm using item.backcolor property which works fine, but... If I click on the listview outside the items when current line is gray, it will unselect and remains white! Also listening on selectindexchange or mousedown or whatever on listview doesn't help. The problem probably is that all these methods are called before the unselection is done :( It would be great to tell listview that it should apply backcolor setting of an item during unselection... Does anyone know some solution?

Please fix your line length

This is what I see

Hi all, I've got problem with ListView in VB.NET. I want to
color lines (odd

Jan Hyde (VB MVP)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top