Example #1
0
        private void OrdersForm_Load(object sender, EventArgs e)
        {
            int ID = int.Parse(SetId);

            OrdersGridView.DataSource = OrdersFunctions.Read(ID);
            DataGridViewRow row         = OrdersGridView.CurrentCell.OwningRow;
            string          Description = row.Cells[2].Value.ToString();
            string          quantity    = row.Cells[3].Value.ToString();
            string          price       = row.Cells[4].Value.ToString();

            UpdateDescription.Text = Description;
            UpdateQuantity.Text    = quantity;
            UpdatePrice.Text       = price;
            SetNumberOrders();
        }