Data binding: Re: DataGrid, SQL and custom object
I'm quite new to these forums, so if I'm posting in the wrong section, then please tell me.
I have a program that reads and writes a list of Videos (not actual videos, a class that I created) to an SQL database and displays them in a DataGrid (i.e. using WPF, not a DataGridView in Windows Forms).
Up until now, I've called a method that manually updates the DataGrid every time the data is changed, but I'm slowly learning about data binding and how this could be automated.
I've already had a good look around the internet, but can't find a definitive way, or even one that works to do this.
Please could someone show me how to make a DataGrid automatically update, using data binding, with a class that I created that is stored in a database.
Thanks again :-)