Example #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            DataGridViewRow row         = OrdersGridView.CurrentCell.OwningRow;
            int             ID          = Convert.ToInt32(row.Cells[0].Value.ToString());
            string          Ordercode   = row.Cells[1].Value.ToString();
            string          Description = UpdateDescription.Text;
            int             Quantity    = Convert.ToInt32(UpdateQuantity.Text);
            double          Price       = Convert.ToDouble(UpdatePrice.Text);

            OrdersFunctions.Delete(ID, Ordercode, Description, Quantity, Price);
            OrdersFunctions.Update(ID, Ordercode, Description, Quantity, Price);
            OrdersForm_Load(this, null);
        }