DataTable增加新的列 DataTable table = new DataTable(); //创建对象 dataGridView.DataSource = table; //绑定控件 table.Columns.Add("列名", typeof(string)); //添加列,前面是列名,后面是类型 foreach(DataRow row in table.Rows) { row["列名"] = "内容"; // 设置这一列的值,加一些相关的逻辑,保证该列每一行的数据是我们想要的 }