
数组
brian0031
这个作者很懒,什么都没留下…
展开
-
DataTable转换成一维数据
DataTable dtb2 = new DataTable();string[] m_list = new string[dtb2.Rows.Count];for (int i = 0; i { m_list[i] = dtb2.Rows[i][0].原创 2011-07-06 17:14:01 · 470 阅读 · 0 评论 -
DataTable转换为二维数组
DataTable dt = new DataTable(); int col = dt.Columns.Count; string[,] array = new string[dt.Rows.Count,col]; for (int i = 0; i { f原创 2011-08-02 16:23:28 · 3935 阅读 · 0 评论 -
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 · 1251 阅读 · 0 评论