Home All Groups Group Topic Archive Search About

Listview BackColor Problem

Author
17 Jul 2006 9:53 AM
Pavel
Hi,

This problem occurred when moving from .NET Framework 1.1 to .NET
Framework 2.0, and it seems to happen on Windows XP only.

I have a client application which contains a dynamically updating
ListView, each ListViewItem has it's BackColor set to a color based on
the values of the row.  When the client is under any kind of load, and
the ListView is updated, sometimes some of the rows will lose it's
BackColor (go back to default White).  I then need to manually click on
that row, or scroll the area off screen to make it go back to normal.

Sometimes I can even get this to occur on a static ListView (ie no
updates are happening), or without even scrolling during updates.  It's
as if the system forgets to paint the BackColor for some items when
there are other areas refreshing on-screen.  Has anyone else
experienced this problem before?

I did some searching already, and tried turning on DoubleBuffering and
various solutions to remove the flicker from ListView, but this problem
is still happening.

Aaron

AddThis Social Bookmark Button