By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,654 Members | 1,816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,654 IT Pros & Developers. It's quick & easy.

ListView Items coloring

P: n/a
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?

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>Qz3g6ybNEkux4+nGGeA/SA==</Id>
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Paja via .NET 247 <an*******@dotnet247.com>'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)

--
"I'm a mathematician," Tom added summarily. (Richard Lederer)

[Abolish the TV License - http://www.tvlicensing.biz/]

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.