开发者

One selection only in listview

I'm having problem to find solution to make a single selection row in the listview in my WPF applic开发者_Go百科ation.

How should I do it?


SelectionMode="Single"?


The answer above is for ListBox, not ListView .

For a ListView you set the MultiSelect property to False (can be done via the Designer).


ListView in WPF has SelectionMode="Single" .

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜