c# How to add a new row to datagridview programmatically?
16166
14-Nov-2013
I have a datagridview and I want to add a new row to datagridview programatically.How to achieve this?
Pravesh Singh
14-Nov-2013You 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";