导入
brian0031
这个作者很懒,什么都没留下…
展开
-
dataGridView直接绑定DataRow数组(导入datatable中)
DataTable dt = new DataTable(); for (int i = dt.Rows.Count; i { DataRow dr = dt.NewRow(); for (int j = 0; j { dr[dataGridView1.Columns[j].Name] = dataGridView1.Rows[i].Cell原创 2011-11-02 16:49:54 · 1229 阅读 · 0 评论 -
导入excel文件到datagridview
导入excel文件到datagridview private DataSet ImportExcel(string filename, string sheet) //自定义函数 { DataSet ds = new DataSet(); using (OleDbConnection conn = new OleDbConnection("Provider=Microsof原创 2012-06-20 16:23:04 · 591 阅读 · 0 评论