编程很好玩!
编程很好玩!

导航

 

必须通过BindingSource来转接一下

 

例如:

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

posted on 2009-12-10 14:31  lzp  阅读(569)  评论(0编辑  收藏  举报