views:

946

answers:

4

Hello ,

I have a list view that after a double click, a record opens a new form to show the details, but the record in the list view lost the "selection".... How do I know which record was clicked ???

Thanks

Maria João

+1  A: 

Try setting the HideSelection property on the list view to false. It's enabled by default.

Stu Mackellar
+6  A: 

The listview control has a HideSelection property that defaults to True. Set this to False and the current row will remain highlighted even if the control loses focus.

BenR
A: 

Thanks very much for the quick answer i´m going to try it

Maria João
A: 

This work well but i wan´t to ask if there are chance of change the back color ?? Thanks

Maria João

Maria João