开发者

Using a "local database" with a WPF DataGrid

开发者 https://www.devze.com 2023-02-03 06:49 出处:网络
I\'m starting to make some test with .NET 4 / WPF. I made a开发者_Go百科 local database with a table called \"Fournisseurs\".

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消