DataGridViewRow row = new DataGridViewRow(); row.CreateCells(dataGridView1); row.Cells[0].Value = 1;
row.Cells["ID"].Value = i;// it gives error
dataGridView1.Rows[0].Cells["ID"]=1;//it works fine
row
dataGridView1
dataGridView1.Rows.Add(row);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)