Can one one please suggest me which one will be the best, fast and efficient method to fill a ListView in a WPF app.
From ObservableCollection or from DataSet?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I always go for ObservableCollection, I’d never use a DataSet bound directly to a control.
And if you are not changing the items in the collection, you should consider using List.
But with a little more info, maybe there would be good reason to use the dataset, but I don’t think so.