We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

SfListView - Clear selected item from code behind

How can I clear the selected item in the listview from the code behind?

3 Replies

DB Dinesh Babu Yadav Syncfusion Team August 12, 2019 04:28 AM

Hi John, 
Thank you for contacting Syncfusion support. 
You can clear the selected item either by defining the SelectedItem as null or clearing the SelectedItems. Please refer the following UG documentation link for more reference. 
Please let us know if you require further assistance. 
Dinesh Babu Yadav 

RO Robert June 7, 2021 10:16 AM

That's a nice function! Though how to do it with MVVM? Is there a possibilty?

Thx and best regards, Robert

KK Karthikraja Kalaimani Syncfusion Team June 8, 2021 06:05 AM

Hi Robert,

We have prepared sample in MVVM architecture. Please download the sample from the below link. 

Sample link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/ListViewSelection-1826876180.zip

Karthik Raja

Live Chat Icon For mobile
Up arrow icon