.net - WPF - How to clear selection from ListView? -


this seems should simple, can't seem work.

i'd programatically clear selection of selected item in listview.

i've tried setting selectedvalue null, setting selecteditem null, setting selectedindex -1, , tried calling unselectall method. in each , every case, selecteditems.count still equal one...

any ideas?

you must put empty collection

listview.unselectall(); 

i have read question again. if not work, problem may binding. listview bound??


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -