WPF C#数据网格 [英] WPF C# Data grid

查看:91
本文介绍了WPF C#数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我尝试将DataGrid添加到我的表单中,但是我的工具箱中没有DataGrid,并且尝试将其添加到我的工具箱中,但是我无法通过任何人来帮助我在WPF表单中添加DataGrid ...?

Hi Guys,

I try to add DataGrid to my form but there is no DataGrid in my toolbox and I try to add it to my toolbox but I fail any one can help my in adding a DataGrid in my WPF Form...?

推荐答案

您可以在.net 3.5中看到它

单击
You can see this for your .net 3.5

Click


检查项目的属性.

目标是否设置为.Net 3.5?

如果是这样,请将其更改为.Net 4.0,然后DataGrid将神奇地出现.

一开始就把我吸引住了. :):)
Check in the properties for your project.

Is the Target set to .Net 3.5?

If so change it to .Net 4.0 and the DataGrid will magically appear.

That caught me out at first. :) :)


如果您使用的是VS2010,则应该有一个.NET 4.0条目.如果没有条目,则需要重新安装VS2010.

如果您使用的是VS2008,听起来可能是您的评论,那么它不是WPF DataGrid附带的.您可以从此处 [ ^ ].其中有指向教程的链接以及许多其他好东西,以及 WPF工具包本身.

祝你好运. :)
If you are using VS2010 then there should be a .NET 4.0 entry. If you are and there isn''t an entry then you need to reinstall VS2010.

If you are using VS2008, which sounds likely form your comment, then it doesn''t come with a WPF DataGrid. You can download the ''official'' one from here[^]. There are links there to tutorials and lots of other good stuff as well as the WPF Toolkit itself.

Good Luck. :)


这篇关于WPF C#数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆