title: How to convert Listview to DataTable
body: <p>I have seen many examples of populating a listview from a datatable or converting a datatable to a listview but what I am trying to do is exactly the other way around.</p>
  
  <p>How can I convert/copy the contents of a winform listview to a datatable?</p>
  
  <p>[EDIT]</p>
  
  <p>I have a listview with a context menu where users can multiselect items and choose one of the context menu options, I then loop the selected items and extract each selected row (listview item) and serialize it, instead of doing this I wanted to convert the listview to a datatable then add the datatable to a dataset and serialize the dataset.  </p>
  
  <p>Thanks</p>