Exemplo n.º 1
0
        private void dataGridView样品_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                selectedOrderId = dataGridView样品.Rows[e.RowIndex].Cells["订单编号"].Value.ToString();

                if (checkBox所有没有报价.Checked)
                {
                    checkBox所有没有报价.Checked = false; // will fire change event.
                }
                else
                {
                    dataGridView产品.DataSource = pMgr.GetProductsByOrder(selectedOrderId);
                    dataGridView产品.Update();
                }
            }
            catch (Exception ex) { };
        }