ListView Select

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

    #1

    ListView Select

    Hi
    I use the following code to select a specific ListViewItem on ListView

    lvw.Items(2).Se lected = True
    lvw.EnsureVisib le(iPos)
    lvw.Select()
    (I tried also lvw.Focus() )
    All works fine, lvw got the focus and the right row is selected
    (highlighted). The problem is: If I press the down arrow key the cursor
    does not go to the next row. I have to press down arrow key again to
    select the next row.
    Why does it happen? There is any work around?
    Thanks in advance
    Marcos
    anonymous@devde x.com


    *** Sent via Developersdex http://www.developersdex.com ***
  • Marcos Ribeiro

    #2
    Re: ListView Select


    I found the solution myself. Btw very simple. My bad.
    lvitem.focused = TRUE
    Marcos
    nospam@devdex.c om

    *** Sent via Developersdex http://www.developersdex.com ***

    Comment

    Working...