ListView Grid Distortion

L

Liz

My ListView components seem to produce distortion when they are scrolled in
Details view; it looks almost like the text has a "strike-through" attribute
applied to it.

Does anyone know of a fix for this? If not, is there an alternative
component available (that behaves like a ListView) ?

TIA

L

PS: this is in VS 2005, SP1 ... I have not checked yet whether vs2008
behaves differently
 
N

Norman Diamond

I vaguely remember working around a problem similar to that, by adding a
scroll handler and calling the Invalidate method (to force a refresh).
 
L

Liz

I vaguely remember working around a problem similar to that, by adding a
scroll handler and calling the Invalidate method (to force a refresh).

what event did you handle ... on what object? this sounds like it makes
sense but I have no handles to grab here ... can you say a little bit more
about what you did? thanks ....

Liz
 
C

Claes Bergefall

In my experience, these types of artifacts are caused by crappy graphics
drivers. Do you experience the problem on different machines or only on a
specific one? What graphics card are you using?

/claes
 
L

Liz

In my experience, these types of artifacts are caused by crappy graphics
drivers. Do you experience the problem on different machines or only on a
specific one? What graphics card are you using?

/claes

it's not just my machines, Claes ... (NVIDIA 7950 on the primary dev
machine) ... I hope you are not right about this because I really don't
think you can tell businesses they have to buy 1400 high-end gamer-class
video boards just to get rid of some distortion in a simple ListView
control; this is not (or shouldn't be) a complex, demanding video
requirement .. it's a tough sell when every other application they have
works just fine. My own question would be, "well how come my really complex
Excel sheets render without any distortion?"
 
N

Norman Diamond

Liz said:
what event did you handle ... on what object?

The Scroll event on a DataGridView. It looks like I didn't have that
problem with a ListView. I think you can catch the Scroll event on a
ListView too though.
 
L

Liz

Norman Diamond said:
The Scroll event on a DataGridView. It looks like I didn't have that
problem with a ListView. I think you can catch the Scroll event on a
ListView too though.

no ... there's a scroll event in the docs for DataGridView but none for
ListView; am I missing something?

L
 
N

Norman Diamond

Liz said:
no ... there's a scroll event in the docs for DataGridView but none for
ListView; am I missing something?

You're right, I just checked, and you and I are both missing an event that
just seems too sensible. I wonder why someone thought programmers wouldn't
need a Scroll event on a ListView.

The form itself has a Scroll event. If you handle that one and check to see
if the sender (of type Object) is your ListView, does that work?
 
C

Claes Bergefall

Liz said:
it's not just my machines, Claes ... (NVIDIA 7950 on the primary dev
machine) ... I hope you are not right about this because I really don't
think you can tell businesses they have to buy 1400 high-end gamer-class
video boards just to get rid of some distortion in a simple ListView
control; this is not (or shouldn't be) a complex, demanding video
requirement .. it's a tough sell when every other application they have
works just fine. My own question would be, "well how come my really
complex Excel sheets render without any distortion?"

I never said anything about the grahics adapter, only the driver. If we're
talking 1400 machines then I'm sure they have the means to provide software
updates to those machines. Any adapter that's less than 5 years old should
be able to show a listview without problems. An nVidia 7950 should be just
fine.

However, it sounds like you're experiencing this with different adapters so
it's unlikely that it's a driver problem.

FWIW, I have around 500 machines using a Matrox card with buggy drivers that
causes artifacts with a listview. I can't update though because the new
drivers are worse! I managed to work around the problem by lowering the
hardware acceleration a notch. Could be worth trying in your case.

/claes
 
L

Liz

FWIW, I have around 500 machines using a Matrox card with buggy drivers
that causes artifacts with a listview. I can't update though because the
new drivers are worse! I managed to work around the problem by lowering
the hardware acceleration a notch. Could be worth trying in your case.

thanks; this sounded promising but didn't pan out .. it's a strange problem
... the *only* time I see distortion is when I click on the scoll bar
anywhere off of the slider ... anything else: arrow up, down, pgUp, pgDn,
using the slider to scroll, right-clicking on the scroll bar and selecting
"Scroll Here" ... all work without problem

L
 

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

Top