title: Adding rows to second column ONLY - populating data using a for loop
body: <p>I calculate the amount of rows I want to have in my <strong>second</strong> column using a for loop based on reading how many records a file has that has been opened. I have researched and tried various solutions but nothing works, yet it seems so simple. Below is my current code where I retrieve the file's length and do a quick sum, entering a for loop where (at the moment) I am only able to populate the first column.</p>
  
  <pre><code>long Count = 1;
  FileInfo Fi = new FileInfo(file);
  long sum = (Fi.Length / 1024) - Count;
  
  for (int i = 0; i &lt; sum; i++)
  {
      DataGridView1.Rows.Add(Count++);
  }
  </code></pre>
  
  <p>I'm not sure how to do it but I know the above code adds to the first column by default - I don't know how to modify it. I know by:</p>
  
  <pre><code>DataGridView1.Rows.Add("a","b");
  </code></pre>
  
  <p>... The 'b' value is displayed in the second column, but I don't want anything for now in the first where 'a' is.</p>
  
  <p>I have looked at <a href="https://stackoverflow.com/questions/6743044/insert-a-row-with-one-column-datagridview-c-sharp">insert a row with one column datagridview c#</a> but it is related to merging columns, again, I don't want this.</p>
  
  <pre><code>DataGridView1.Rows.Add("",Count++);
  </code></pre>
  
  <p>Works to an extent, but is not the right way to do it. I'm going to be adding data to the first column later on.</p>