Trying to copy one datagrid row to another row, below code copies a hard coded number to another row. I need to copy say cell 7 row to cell 10 row.
private void btn_Adjust_Click(object sender, EventArgs e)
for (int i = 0; i < dataGridView1.RowCount; i++)
{
if (dataGridView1.Rows[i].Cells[18].Value.ToString() == "Yeshh")
{
dataGridView1.Rows[i].Cells[9].Value = "48";
dataGridView1.Rows[i].Cells[8].Value = "45";
var value3 = dataGridView1.Rows[i].Cells[7].Value.ToString();
dataGridView1.Rows[i].Cells[10].Value = value3;
var K = value3;
dataGridView1.Rows[i].Cells[10].Value = K;
Booney440