title: How to add a new row in DataTable below the existing rows
body: <p>I am trying to add a new row into my <code>DataTable</code> and then binding it to the <code>GridView</code>(<code>Inquiries</code>) each time I click the button. The row is added when I Click the button for the first time. but when I try to add another row by clicking on it again it replaces the existing row.</p>
  
  <pre><code>protected void addInquiry_Click(object sender, EventArgs e)
  {
        try
        {
               Quantity = QuantityTxt.Text;
               string Details = Request.Form[Products.UniqueID];
               SelectedProduct = Details.Split('!');
               ProductNo = SelectedProduct[0];
               ProductDescription = SelectedProduct[1];
               ProductSapPack = SelectedProduct[2];
               ProductID = SelectedProduct[3];
               DataTable dt = new DataTable();                       
               dt.Columns.AddRange(new DataColumn[5] { 
                                   new DataColumn("ProductID",typeof(int)),
                                   new DataColumn("ProductNo", typeof(string)),
                                   new DataColumn("Description", typeof(string)),
                                   new DataColumn("SapPack",typeof(string)),
                                   new DataColumn("Quantity",typeof(string)),
                                   });
  
              DataRow dr = dt.NewRow();
  
              dr[0] = ProductID;
              dr[1] = ProductNo;
              dr[2] = ProductDescription;
              dr[3] = ProductSapPack;
              dr[4] = Quantity;
  
              dt.Rows.Add(dr);
              Inquiries.DataSource = dt;
              Inquiries.DataBind();
        }
  
        finally
        {
              QuantityTxt.Text = String.Empty;
              Description.Text = String.Empty;
              SapPack.Text = String.Empty;
              Products.Text = String.Empty;
        }
  }
  </code></pre>