ListView Select

  • Thread starter Thread starter Marcos Ribeiro
  • Start date Start date
M

Marcos Ribeiro

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

lvw.Items(2).Selected = True
lvw.EnsureVisible(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
(e-mail address removed)
 
I found the solution myself. Btw very simple. My bad.
lvitem.focused = TRUE
Marcos
(e-mail address removed)
 
Back
Top