Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

ListView Grid Distortion

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Liz - 03 Mar 2008 22:40 GMT
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
Norman Diamond - 04 Mar 2008 00:10 GMT
I vaguely remember working around a problem similar to that, by adding a
scroll handler and calling the Invalidate method (to force a refresh).

> My ListView components seem to produce distortion when they are scrolled
> in Details view; it looks almost like the text has a "strike-through"
[quoted text clipped - 9 lines]
> PS: this is in VS 2005, SP1 ... I have not checked yet whether vs2008
> behaves differently
Liz - 04 Mar 2008 07:08 GMT
>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

>> My ListView components seem to produce distortion when they are scrolled
>> in Details view; it looks almost like the text has a "strike-through"
[quoted text clipped - 9 lines]
>> PS: this is in VS 2005, SP1 ... I have not checked yet whether vs2008
>> behaves differently
Norman Diamond - 05 Mar 2008 00:16 GMT
>>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?

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.
Liz - 05 Mar 2008 01:54 GMT
>>>I vaguely remember working around a problem similar to that, by adding a
>>>scroll handler and calling the Invalidate method (to force a refresh).
[quoted text clipped - 4 lines]
> 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
Norman Diamond - 05 Mar 2008 05:44 GMT
>>>> I vaguely remember working around a problem similar to that, by adding
>>>> a scroll handler and calling the Invalidate method (to force a
[quoted text clipped - 8 lines]
> 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?
Claes Bergefall - 04 Mar 2008 09:53 GMT
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

> My ListView components seem to produce distortion when they are scrolled
> in Details view; it looks almost like the text has a "strike-through"
[quoted text clipped - 9 lines]
> PS: this is in VS 2005, SP1 ... I have not checked yet whether vs2008
> behaves differently
Liz - 04 Mar 2008 18:25 GMT
> 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?"

>> My ListView components seem to produce distortion when they are scrolled
>> in Details view; it looks almost like the text has a "strike-through"
[quoted text clipped - 9 lines]
>> PS: this is in VS 2005, SP1 ... I have not checked yet whether vs2008
>> behaves differently
Claes Bergefall - 05 Mar 2008 10:38 GMT
>> 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
[quoted text clipped - 10 lines]
> 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
Liz - 06 Mar 2008 00:08 GMT
> 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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.