日期:2014-05-17 浏览次数:21055 次
if (datagridview1.CurrentRow != null)
{
object[] value = new object[datagridview1.Columns.Count];
for (int i = 0; i < datagridview1.Columns.Count; i++)
{
value[i] = datagridview1.CurrentRow.Cells[i].Value;
}
datagridview1.Rows.Remove(datagridview1.CurrentRow);
datagridview2.Rows.Add(value);
}