title: Simplest way of programmatically creating a DataGridView with X columns by Y rows
body: <p>In C# Winforms, I'd like to use a DataGridView as a simple widget to store information to display to the user. To this end, I'd like to create a table of say, 5x10 cells.</p>
  
  <p>After some research, solutions tend to allow adding just one row or column at a time. I'd like the whole grid created initially and straight away, so I can start populating it with data, like you would with a standard C# 2D array.</p>
  
  <p>What's the simplest way of going about this? A function header could look like this:</p>
  
  <p><code>createCells(DataGridView dgv, int cols, int rows) {}</code></p>
  
  <p>It should be quick and amenable to changing the cols and rows to a larger or smaller number later on if need be.</p>