📅  最后修改于: 2022-03-11 14:59:49.329000             🧑  作者: Mango
dataGridView1.Columns[0].Name = "column2";
dataGridView1.Columns[1].Name = "column6";
string[] row1 = new string[] { "column2 value", "column6 value" };
dataGridView1.Rows.Add(row1);