Example #1
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            //sql = new BatchofSupplies();
            sql.Open();

            sql.DeleteBatchSupply(Grid1.SelectedRow.Cells[1].Text);

            SqlDataReader daa = sql.GetBatchSupply();

            Grid1.DataSource = daa;
            Grid1.DataBind();
            sql.Close();
        }