Click here to Skip to main content
15,896,450 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I am developing a WPF application in which I have a class 'Movie' which contain some properties and another class MovieCollection(which is the collection of movie). Right now I have bind this collection with my DataGrid in xaml to show Movie properties. I am taking user input by opening new window at run time and populate the observable collection with that to show it in my DataGrid, but now I want to store data in database first and fetch that data from database to show it in DataGrid. MovieCollection class is something like this
ObservableCollection<Movie> _movieObservableCollection=new ObservableCollection<Movie> ();
public ObservableCollection<Movie> MovieObservableCollection
    {
        get { return _movieObservableCollection; }
        set
        {
            _movieObservableCollection = value;
            this.NotifyPropertyChanged("MovieObservableCollection");
        }
    }

Here I want to set this collection such that the properties of model class shown as the columns attributes of the table.

How can I do this? Any link?
Posted
Updated 2-Aug-15 2:28am
v2
Comments
Afzaal Ahmad Zeeshan 2-Aug-15 8:29am    
And... Are you looking for a reference to SQLite library? :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900