title: GridView RowDataBound, Deleted cells reappear
body: <p>I am working on a .Net Project and I have some problems with GridView.  </p>
  
  <p>I have several buttons in my page. When I click the button which binds my GridView everything is OK, but after that, when I click on some other button there appears one more cell, which is empty, at the end of Rows which contains the text "Monday".</p>
  
  <p>Can someone tell me what the problem is?</p>
  
  <p>Thanks</p>
  
  <p>This is my code.</p>
  
  <pre><code>       protected void GridView1_RowDataBound1(object sender, GridViewRowEventArgs e)
         {
             if (e.Row.Cells[0].Text.Contains("Monday"))
             {   
                  e.Row.BackColor = Color.Gray;
                  e.Row.ForeColor = Color.White;
                  e.Row.Cells[0].ColumnSpan = 2;
                  e.Row.Cells.Remove(e.Row.Cells[1]);
                  e.Row.Cells[1].HorizontalAlign = HorizontalAlign.Center;
                  e.Row.Cells[2].HorizontalAlign = HorizontalAlign.Center;
                  e.Row.Cells[3].HorizontalAlign = HorizontalAlign.Center;
                  e.Row.Cells[4].HorizontalAlign = HorizontalAlign.Center;
             }
             else
             {
                  e.Row.Cells[0].Width = 45;
                  e.Row.Cells[1].Width = 400;
                  e.Row.Cells[2].Width = 40;
                  e.Row.Cells[3].Width = 40;
                  e.Row.Cells[4].Width = 40;
                  e.Row.Cells[5].Width = 40;
                  e.Row.Cells[0].HorizontalAlign = HorizontalAlign.Center;
                  e.Row.Cells[2].HorizontalAlign = HorizontalAlign.Center;
                  e.Row.Cells[3].HorizontalAlign = HorizontalAlign.Center;
                  e.Row.Cells[4].HorizontalAlign = HorizontalAlign.Center;
                  e.Row.Cells[5].HorizontalAlign = HorizontalAlign.Center;      
             }
         }
  </code></pre>