How to clear all the data from listview?

How to clear all the data from listview in a click of a button?

What kind of listview do you prefer to use?

  • In case of ListView and custom ListViews, set the elements to create empty list. (Re-initalize as empty.)
  • In case of List View Image and Text, call Clear List.