.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
Post a Comment