Beispiel #1
0
 protected void Grd2_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     try
     {
         //  setStateGridview();
         DataTable dt1 = new DataTable();
         dt1 = (DataTable)Session["tempDCData1"];
         dt1.Rows[e.RowIndex].Delete();
         Grd2.DataSource = dt1;
         Grd2.DataBind();
         Session["tempDCData"] = dt1;
         loder("Successfully Deleted...", "3000");
         if (Grd2.Rows.Count == 0)
         {
             btnSave.Visible = false;
         }
     }
     catch
     {
     }
 }
Beispiel #2
0
 public void BindGrd2(DataTable dt)
 {
     //string CustCode = txtcustomer.Text.ToString().Split(':')[0].Trim();
     Grd2.DataSource = dt;
     Grd2.DataBind();
 }