Sunday, February 13, 2011

List View C# stay selected

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

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

  • 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.

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

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

    Maria João

0 comments:

Post a Comment