DataGridview
DataGridView控件---绑定数据方法(非绑定 + 绑定)
http://blog.csdn.net/yudandan10/article/details/9618763DataGridView控件绑定数据源有几种方式
第一种:
DataSet ds=new DataSet ();
this.dataGridView1.DataSource=ds.Table[0];
第二种:
DataTable dt=new DataTable();
this.dataGridView1.DataSource=dt;
第三种:
DataSet ds=new DataSet ();
this.dataGridView1.DataSource = ds.Tables["表名"];
第四种:
DataSet ds=new DataSet ();
this.dataGridView1.DataSource = ds;
this.dataGridView1.DataMember = "表名";
第五种:
ArrayList Al = new ArrayList();
this.dataGridView1.DataSource = Al;
第六种:
Dictionary<string, string> dic = new Dictionary<string, string>();
this.dataGridView1.DataSource = dic;
第七种:
DataView dv = new DataView();
this.dataGridView1.DataSource = dv;
第八种:
this.dataGridVi.DataSource = new BindingList<Object>(List<Object>);
合并多个DataTable及将DataTable添加到DataSet的方法
http://www.cnblogs.com/fishtreeyu/archive/2011/03/16/1986384.html