【问题标题】:Binding SQL table to DataGridView in WPF在 WPF 中将 SQL 表绑定到 DataGridView
【发布时间】:2011-01-01 20:02:34
【问题描述】:

如何在 WPF 中将 SQL 表绑定到 datagridview?

【问题讨论】:

    标签: sql wpf data-binding datagridview


    【解决方案1】:

    我相信您指的是 DataGrid 对象 (?),但 this page 应该包含您需要的所有信息。

    【讨论】:

      【解决方案2】:

      我们不能直接使用这个DataGridView。要使用它,我们必须添加两个引用,命名为:

      System.Windows.Forms(指的是我们正在为其构建包装器的控件) WindowsFormsIntegration(包含我们将使用的 WindowsFormsHost 控件)

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2013-06-10
        • 1970-01-01
        • 2018-04-20
        • 1970-01-01
        • 2011-05-07
        • 2011-08-08
        • 1970-01-01
        相关资源
        最近更新 更多