title: Use of unassigned local variable please
body: <p>I created much for loops and want to put
  value from a int to a string.</p>
  
  <pre><code>String strasze = dataGridView1.Rows[rows].Cells[straszeint].Value.ToString();
  String stadt = dataGridView1.Rows[rows].Cells[stadtint].Value.ToString();
  land = dataGridView1.Rows[rows].Cells[landint].Value.ToString();
  
  hersteller = dataGridView1.Rows[rows].Cells[colIndex].Value.ToString();
  kundennummer = dataGridView1.Rows[rows].Cells[kundennummerint].Value.ToString();
  haendler = dataGridView1.Rows[rows].Cells[haendlerint].Value.ToString();
  </code></pre>
  
  <p>Here is a example for loop:</p>
  
  <pre><code>int landint;
  
  for (int i = 0; i &lt; datagridview.Columns.Count; i++)
  {
      if (datagridview.Columns[i].Name.Equals(landname))
      {
          landint = i;
          break;
      }
  }
  </code></pre>
  
  <p>What is wrong? It shows me the error on
  <code>straszeint</code>,
  <code>stadtint</code>,
  <code>landint</code></p>
  
  <p>//EDIT</p>
  
  <pre><code>int straszeint;
  
  for (int i = 0; i &lt; datagridview.Columns.Count; i++)
  {
      if (datagridview.Columns[i].Name.Equals(straszennamen))
      {
          straszeint = i;
          break;
      }
  }
  </code></pre>