I have just started learning MVVM and having a dilemna.
If I have a a main ViewModel and inside this model I have a number of datasets. Now should I be creating a new ViewModel for each row inside the dataset? Or expose the DataSet itself as a DependencyProperty?
For now the dataset has about 20 rows inside it, and the thought of iterating through each row to create a ViewModel binding to each row.... might not be the best option for performance reasons and memory reasons in the future, like when there are 2000+ rows.
Should I still go ahead and create a RowViewModel and iterate through the dataset creating a new RowViewModel? And have an ObservableCollection of RowViewModels or just expose the DataSet?
The binding for this DataSet/ViewModel will be to a combo box, hence why loading only viewable rows would possibly a performance issue as users expect to be able to scroll without any delays.
Any help would be greatly appreciated.