Beispiel #1
0
        private void dataGridView_OrderList_SelectionChanged(object sender, EventArgs e)
        {
            if (dataGridView_OrderList.CurrentRow != null)
            {
                CurrentOrderID = dataGridView_OrderList.CurrentRow.Cells[1].Value.ToString();

                if (CurrentOrderID != "")
                {
                    bs_OrderItem.DataSource = service.GetItem(CurrentOrderID);
                    bs_OrderItem.ResetBindings(false);
                    tb_Customer.Text = dataGridView_OrderList.CurrentRow.Cells[0].Value.ToString();
                }
            }
        }