List View

  • Thread starter Thread starter El Camino
  • Start date Start date
E

El Camino

Ok, Picture this...

I have a List view already fill with data

I want to select one row in the list view with an ID that
i retrieve later on in the process

Basically its:
I have an ID

i want to find that ID in the List view

If its there then selection the whole row

Thanx
El Camino
 
ok i managed to find the row but now i need to select the
row

i tried this but no result

lsvTache.Items(intCount).selected=true
 
well, the whole thing was workin at the beginning.

I had to set the list view property:

HiddenSelection=false
 
Set HideSelection to False on the list view..

this threw me off the first time.

-CJ
 
* "El Camino said:
I have a List view already fill with data

I want to select one row in the list view with an ID that
i retrieve later on in the process

Basically its:
I have an ID

i want to find that ID in the List view

If its there then selection the whole row

Set the 'ListViewItem''s 'Selected' property to 'True'. If the
selection should even be visible if the control doesn't have the focus,
set it's 'HideSelection' property to 'True'. Or do you have problems
locating the item with #n in the listview control?
 

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

Back
Top