prevent listview to lose selected item

后端 未结 6 1820
失恋的感觉
失恋的感觉 2021-01-18 03:43

I\'m currently working on a listview in winform c# and everytime I click on an empty space on the listview, the selected item is lost.

6条回答
  •  说谎
    说谎 (楼主)
    2021-01-18 03:55

    The listview control has a HideSelection property that defaults to True. Make it False and you're good to go... in some cases this is enough.

提交回复
热议问题