title: C# check if datagridview column is empty
body: <p>I want to check if my "many" column in datagridview is empty.</p>
  
  <p>here my code</p>
  
  <pre><code>        for (int i = 0; i &lt; (gridx.Rows.Count - 1); i++)
          {
              col = gridx.Rows[i].Cells["code"].Value.ToString();
              col4 = gridx.Rows[i].Cells["many"].Value.ToString();                
          }
  
          if (col4 == "")
          {
              MessageBox.Show("Many is empty");
              this.Focus();
              return;
          } 
          else
          {
            //my code in here
          }
  </code></pre>
  
  <p>but it don't show error "many is empty"</p>
  
  <p>please help me.. and thanks before</p>