必须通过BindingSource来转接一下

 

例如:

            BindingSource bs = new BindingSource();
            bs.DataSource = cmd.ExecuteReader();
            this.dataGridView1.DataSource = bs;

相关文章:

  • 2022-02-28
  • 2021-11-08
  • 2022-12-23
  • 2022-02-08
  • 2022-02-08
  • 2022-02-08
  • 2022-02-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-07-24
相关资源
相似解决方案