ListView

  • Thread starter Thread starter Ivan Weiss
  • Start date Start date
I

Ivan Weiss

I am working with a ListView control which I am using to display a table
of all of my customers in to the user. However, when I click on a
button on my form it deselects the item in the listview. Does anyone
know why it does this or how to prevent it from doing it?

-Ivan
 
The item is not really deselected. The selection is just hidden when the
listview loses focus.
Set the HideSelection property to False.

-Rob Teixeira [MVP]
 
* Ivan Weiss said:
I am working with a ListView control which I am using to display a table
of all of my customers in to the user. However, when I click on a
button on my form it deselects the item in the listview. Does anyone
know why it does this or how to prevent it from doing it?

The item is not deselected. Simply turn off the control's
'HideSelection' property.
 
Thanks, the error in my code was actually elsewhere but I am glad I
resolved that hidden selection also. Thanks for the help!

-Ivan
 
Back
Top