开发者

Datagrid in vs 2010

The inclusion of DataGrid and DatePicker controls was announced for WPF in Framework 4, but when I access to Visual Studio 2010 开发者_如何学Goand I create a WPF project, I don't get these controls. What did I miss? Thanks.


I hope I understood your problem, so here we go... Instead of the DataGrid you can use the ListView with ListView.View set to a GridView. After this you have to create a couple of GridViewColumn objects, set their binding and then add them to the GridView.

I have an example of doing this (but i don't think it is the best one, because i'm kind of new to this programming stuff). If you want I could post it here.


Have you made sure the target Framework is set to be v4? They should "just show" in the toolbox if you're targeting v4 of the framework.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜