title: foreach gridview row, commandfield edit enable true or false
body: <p>here my code, but all in edit column enabled false, i want false editbutton depend on statuse value</p>
  
  <pre><code>foreach (GridViewRow row in GridView1.Rows)
  {
      statuse = dt.Rows[0].ItemArray[6].ToString();
      if (statuse != null || statuse != "")
      {
          if (control is LinkButton)
          {
              LinkButton btn = control as LinkButton;
              btn.Enabled = btn.CommandName.Equals("Edit");
              btn.Enabled = false;
          }
      }
  }
  </code></pre>