int i= dataGridView1.CurrentRow.Index;
DataGridViewRow dr = new DataGridViewRow();
foreach (DataGridViewColumn c in dataGridView1.Columns)
{
dr.Cells.Add(c.CellTemplate.Clone() as DataGridViewCell);
}
//假设有3列
dr.Cells[0].Value = textBox1.Text;
dr.Cells[1].Value = textBox2.Text;
dr.Cells[2].Value = textBox3.Text;
dataGridView1.Rows.Insert(i, dr);