Flicker problem with ListView 2.0

Flicker problem with ListView 2.0

Post by Code » Sat, 17 Jun 2006 04:18:48


The ListView control under 2.0 does not behave exactly the same way as
it was in 1.1. We are noticing that the same code running with 1.1 was
flicker free, but with 2.0 has massive flickering. I am wondering if
anyone else is having this problem, and if there is a solution.

Thanks.
 
 
 

Flicker problem with ListView 2.0

Post by Michael Po » Wed, 21 Jun 2006 00:39:26

Hi,
I haven't seen this problem, or been able to recreate it, however it may be
due to the fact that the old ControlStyles.DoubleBuffer has been reviewed
and is now called ControlStyles.OptimizedDoubleBuffer, therefore if you are
running a .net 1.0 control through the 2.0 framework, you may lose your
buffering, i suggest that you try deleting your ListView controls and
replacing them with the newer version from the 2.0 framework

--
Mike Powell
Ramuseco Limited
www.ramuseco.com

 
 
 

Flicker problem with ListView 2.0

Post by QnJhbmRvbi » Thu, 22 Jun 2006 01:42:02

I'm guessing you're adding/removing items from a ListView that's being
displayed on the page.

The solution to this is to do a .SuspendLayout while you do the update, and
a .ResumeLayout(false) when you're done updating the box.

Sometimes this isn't always an option as you want to have "live" data in the
ListView, but in cases where you're updating every "so often" it should work
just fine for you.
--
KMG Software, Inc.
Thinking Beyond, Above, and Before
http://www.yqcomputer.com/