ListView Grid Distortion

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Liz

    ListView Grid 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" 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

    #2
    Re: ListView Grid Distortion

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


    "Liz" <liz@tiredofspa m.comwrote in message
    news:ephpu9XfIH A.4728@TK2MSFTN GP03.phx.gbl...
    >
    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
    >
    >

    Comment

    • Liz

      #3
      Re: ListView Grid Distortion


      "Norman Diamond" <ndiamond@newsg roup.nospamwrot e in message
      news:eQTdxwYfIH A.4396@TK2MSFTN GP04.phx.gbl...
      >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

      >
      "Liz" <liz@tiredofspa m.comwrote in message
      news:ephpu9XfIH A.4728@TK2MSFTN GP03.phx.gbl...
      >>
      >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
      >>
      >>
      >

      Comment

      • Claes Bergefall

        #4
        Re: ListView Grid Distortion

        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

        "Liz" <liz@tiredofspa m.comwrote in message
        news:ephpu9XfIH A.4728@TK2MSFTN GP03.phx.gbl...
        >
        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
        >
        >

        Comment

        • Norman Diamond

          #5
          Re: ListView Grid Distortion

          "Liz" <liz@tiredofspa m.comwrote in message
          news:egvmxZcfIH A.1824@TK2MSFTN GP02.phx.gbl...
          "Norman Diamond" <ndiamond@newsg roup.nospamwrot e in message
          news:eQTdxwYfIH A.4396@TK2MSFTN GP04.phx.gbl...
          >
          >>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.

          Comment

          • Liz

            #6
            Re: ListView Grid Distortion


            "Norman Diamond" <ndiamond@newsg roup.nospamwrot e in message
            news:O8m6lYlfIH A.4684@TK2MSFTN GP06.phx.gbl...
            "Liz" <liz@tiredofspa m.comwrote in message
            news:egvmxZcfIH A.1824@TK2MSFTN GP02.phx.gbl...
            >"Norman Diamond" <ndiamond@newsg roup.nospamwrot e in message
            >news:eQTdxwYfI HA.4396@TK2MSFT NGP04.phx.gbl.. .
            >>
            >>>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.
            no ... there's a scroll event in the docs for DataGridView but none for
            ListView; am I missing something?

            L


            Comment

            • Norman Diamond

              #7
              Re: ListView Grid Distortion

              "Liz" <liz@tiredofspa m.comwrote in message
              news:eO$sBPmfIH A.5904@TK2MSFTN GP06.phx.gbl...
              "Norman Diamond" <ndiamond@newsg roup.nospamwrot e in message
              news:O8m6lYlfIH A.4684@TK2MSFTN GP06.phx.gbl...
              >"Liz" <liz@tiredofspa m.comwrote in message
              >news:egvmxZcfI HA.1824@TK2MSFT NGP02.phx.gbl.. .
              >>"Norman Diamond" <ndiamond@newsg roup.nospamwrot e in message
              >>news:eQTdxwYf IHA.4396@TK2MSF TNGP04.phx.gbl. ..
              >>>
              >>>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.
              >
              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?

              Comment

              • Liz

                #8
                Re: ListView Grid Distortion


                "Claes Bergefall" <claes.bergefal l@nospam.nospam wrote in message
                news:OMOSL0qfIH A.4164@TK2MSFTN GP05.phx.gbl...
                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



                Comment

                Working...