DataGridViewRow Class
Represents a row in a DataGridView control. The Cells property contains a collection of cells in the row.
After you add a DataGridView to a form (for example, DataGridView1), you add a row with two cells as follows:
method void AddRows()
var: DataGridViewRow row; // object variable used to store a row
Begin
row = DataGridViewRow.Create("") // instantiate row object
DataGridView1.Rows.Add(row); // add new row to the control
row.Cells[0].Value = "First Cell in Row";
row.Cells[1].Value = "Second Cell in Row";
End;
Namespace: elsystem.windows.forms