如何将 DataGridView 组件添加到 Visual Studio 社区和我的项目
How do I add the DataGridView component to Visual Studio Community and my project
我想在我的 WPF
项目中使用 DataGridView
。我在我的工具箱列表中看到它,但它处于非活动状态。我无法弄清楚如何激活它并使其可用于我的项目。
I see it in my toolbox list but it is inactive.
DataGridView
是一个 windows 表单控件,不能直接在 WPF window 中使用。
对于 WPF 项目,您需要使用 DataGrid
控件。
您应该右键单击工具箱并取消选中全部显示,这样您将只看到当前打开的设计器可用的那些组件。
我想在我的 WPF
项目中使用 DataGridView
。我在我的工具箱列表中看到它,但它处于非活动状态。我无法弄清楚如何激活它并使其可用于我的项目。
I see it in my toolbox list but it is inactive.
DataGridView
是一个 windows 表单控件,不能直接在 WPF window 中使用。
对于 WPF 项目,您需要使用 DataGrid
控件。
您应该右键单击工具箱并取消选中全部显示,这样您将只看到当前打开的设计器可用的那些组件。