-
December 2nd, 2012, 04:47 PM
#1
Data binding: Re: DataGrid, SQL and custom object
Hi,
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.
In summary:
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 :-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|