如何在wpf visual studio 2010中获取datagrid控件 [英] how to get datagrid control in wpf visual studio 2010

查看:1268
本文介绍了如何在wpf visual studio 2010中获取datagrid控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何在wpf visual studio 2010中获取datagrid控件....我的意思是如何将datagrid控件添加到wpf默认控件。如果我直接在我的xaml代码中键入标签,它会给出一个错误来检查参考组件需要添加..
任何人都可以帮我解决它...

how do we get the datagrid control in wpf visual studio 2010....I mean how to add the datagrid control to the wpf default controls..if I directly type tag in my xaml code, it's giving an error to check the reference assembly that needs to be added.. could anyone please help me out to resolve it...

推荐答案

您可以在工具箱的常用WPF控件部分找到它,如下所示。只需将其拖放到您的窗口设计器中,一切都将可行:

You can find it at the Common WPF Controls section in your Toolbox as you can see below. Just drag-and-drop it into your window designer and everything will be okay:

然后执行以下步骤:


  1. 右键单击工具箱,然后单击选择项目...

  2. 过滤长列表打开的表单通过输入DataGrid,如下图所示:

这篇关于如何在wpf visual studio 2010中获取datagrid控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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