VS2008中的“工具箱”中缺少Windows.Forms.DataGrid [英] Windows.Forms.DataGrid missing from Toolbox in VS2008

查看:216
本文介绍了VS2008中的“工具箱”中缺少Windows.Forms.DataGrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将DataGrid添加到我的Windows Forms应用程序中,但似乎工具箱中缺少它。仅DataGridView可用。

I am trying to add a DataGrid to my Windows Forms application and it seems that it is missing from the toolbox. Only DataGridView is available.

PS:我能够手动将其添加到设计器代码中。但是,尽管如此,我还是对为什么它不包含在工具箱中感到好奇。

PS: I was able to manually add it to designer code. But nevertheless I am curious as to why it's not included in the toolbox.

推荐答案

我怀疑 DataGrid 从未出现在工具箱中。根据 MSDN DataGrid

I suspect the DataGrid was never in the Toolbox to begin with. According to MSDN, the DataGrid


在可滚动网格中显示ADO.NET数据。 DataGridView控件
替换并向DataGrid控件添加功能;但是,保留
DataGrid控件是为了向后兼容和
将来使用(如果您选择的话)。

Displays ADO.NET data in a scrollable grid. The DataGridView control replaces and adds functionality to the DataGrid control; however, the DataGrid control is retained for both backward compatibility and future use, if you choose.

另外,您应注意,Visual Studio允许您自定义工具箱中的项目。您可以右键单击工具箱,选择选择项目,然后选择 DataGrid ,以便它随后出现在您的工具箱中。

Also, you should note that Visual Studio allows you to customize the items in the Toolbox. You can right click in the Toolbox, select "Choose Items" and then select DataGrid so that it will then appear in your toolbox.

这篇关于VS2008中的“工具箱”中缺少Windows.Forms.DataGrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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