if add row to DataTable
DataTable
DataRow row = datatable1.NewRow(); row[\"column2\"]=\"column2\"; row[\"column6\"]=\"column6\"; datatable1.Rows.Add(row);
//header dataGridView1.RowCount = 50; dataGridView1.Rows[0].HeaderCell.Value = "Product_ID0"; //add row by cell dataGridView1.Rows[1].Cells[0].Value = "cell value";