prevent列表视图失去选中的项目 [英] prevent listview to lose selected item
本文介绍了prevent列表视图失去选中的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前工作的一个列表视图中的WinForm C#
每次我点击一个空白的列表视图,
所选择的项目将丢失。
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.
推荐答案
ListView控件有一个 HideSelection
属性,默认为真
。让假
,你是好去... ...在某些情况下,这就够了。
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.
这篇关于prevent列表视图失去选中的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文