Successfully added
DataGridView
by Mailo
How To Add Rows And Columns In DataGridView
The following code adds rows and columns to a DataGridView.
dataGridView1.Columns[0].Name = "Name";
dataGridView1.Columns[2].Name = "City";
dataGridView1.Rows.Add("Kate", "New York");
dataGridView1.Rows.Add("John", "Seattle");
Referenced in:
Leave a Comment
All fields are required. Your email address will not be published.
Comments