I have a datagridview and I want to add a new row to datagridview programatically.How to achieve this?
You can try like this:
Or you need to set there values individually use the propery .Rows(), like this:
dataGridView1.Rows[1].Cells[0].Value = "cell value";