title: ASP.NET visible/invisible Rows in Table(C#)
body: <p>I have a <strong>System.Web.UI.WebControls.Table</strong> with five ROWs with five cells with server controls. In my "Page_load" => CreateChildControls() only Row1 is visible, other rows are invisible.</p>
  
  <p>I want where I click on btnAdd_Click add in my table row by row and where I click on btnDell_Click delete last visible row in my table.... How to do this?</p>
  
  <p><strong>This is my UI in PageLoad:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/W3PFZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W3PFZ.png" alt="enter image description here"></a></p>
  
  <p><strong>This is my UI when click on BtnAdd:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/Hm8Hm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Hm8Hm.png" alt="enter image description here"></a></p>
  
  <p><strong>This is my code for buttons but not workig :</strong></p>
  
  <pre><code>        void btnAdd_Click(object sender, EventArgs e)
      {
  
          if (tRow1.Visible)
          {
              tRow2.Visible = true;
              tRow3.Visible = false;
              tRow4.Visible = false;
              tRow5.Visible = false;
          }
  
          if (tRow1.Visible &amp;&amp; tRow2.Visible &amp;&amp; !tRow3.Visible)
          {
              tRow3.Visible = true;
              tRow4.Visible = false;
              tRow5.Visible = false;
          }
  
      }
  
      void btnDell_Click(object sender, EventArgs e)
      {
  
      }
  </code></pre>