The DataGridView has a property “DataSource” that can simply be assigned to a DataTable to populate it. This means we don’t have to worry about the names/number of columns in the DataTable.
But, I haven’t found a similar way of populating a ListView. It seems that you need to know how many columns the DataTable has and the names of each in order to do this, making it much more difficult.
Can anyone suggest an easy way to populate a ListView like we can with a DataGridView?
Find sorting etc also at –
http://www.akadia.com/services/dotnet_listview_sort_dataset.html
Modified –