如题
俺可不希望用这种方式实现;
string[] row0 = { "11/22/1968", "29", "Revolution 9", "Beatles", "The Beatles [White Album]" };
songsDataGridView.Rows.Add(row0);
因为这种方法不易控制..
俺希望用的方式是
datagridView.Rows.add(),,,dataRow,dataView...来实现
最终以
dataGridView.Rows.Add(dataRow) 来完成,急
俺可不希望用这种方式实现;
string[] row0 = { "11/22/1968", "29", "Revolution 9", "Beatles", "The Beatles [White Album]" };
songsDataGridView.Rows.Add(row0);
因为这种方法不易控制..
俺希望用的方式是
datagridView.Rows.add(),,,dataRow,dataView...来实现
最终以
dataGridView.Rows.Add(dataRow) 来完成,急
foreach (DataRow r in dt1.Rows)
{
DataRow rowToAdd = dt2.NewRow();
for (int j = 0; j < dt2.Columns.Count; j++)
{
rowToAdd[j] = r[j];
}
dt2.Rows.Add(rowToAdd);
}