Using a "local database" with a WPF DataGrid
I'm starting to make some test with .NET 4 / WPF. I made a开发者_Go百科 local database with a table called "Fournisseurs".
Then I created a WPF form, with a DataGrid in it.
Then I wanted to bind my table to it. But I can't find how to make it.
I read some tutorials about binding DataSet to DataGrid but I can't find any guide showing how to create a DataSet from my local database...
Any ideas or tips please?
You will want to look into LINQ-to-Entities to attach to your local database instance. In doing so, you will get object representations of the data which you can then easily bind to the DataGrid.
精彩评论