protected void GridViewQuantity_RowUpdating(object sender, GridViewUpdateEventArgs e)
        {
            var QuantityId = Convert.ToInt32(GridViewQuantity.DataKeys[e.RowIndex].Value);

            var txtBxQuantityControl = GridViewQuantity.Rows[e.RowIndex].FindControl("txtBxQuantity") as TextBox;

            var quantity = vc.quantities.Where(p => p.qntId == QuantityId).FirstOrDefault();

            quantity.quantity1 = Convert.ToInt32(txtBxQuantityControl.Text);

            vc.SaveChanges();
            GridViewQuantity.EditIndex = -1;
            PopulateData();
        }
        protected void Unnamed_RowUpdating(object sender, GridViewUpdateEventArgs e)
        {
            var GridPriceId = Convert.ToInt32(GridViewPrice.DataKeys[e.RowIndex].Value);


            TextBox txtBxPriceControl = (GridViewPrice.Rows[e.RowIndex]).FindControl("txtBxPrice") as TextBox;

            var price = vc.prices.Where(p => p.priceId == GridPriceId).FirstOrDefault();

            price.price1 = Convert.ToDouble(txtBxPriceControl.Text);

            vc.SaveChanges();

            GridViewPrice.EditIndex = -1;
            PopulateData();
            lblupdate.Text = "Successfully Updated";
        }