private void dgvMain_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvMain.Columns[e.ColumnIndex].Name.Equals("编辑") && e.RowIndex >= 0)
            {
                string KeyID = Convert.ToString(dgvMain.Rows[e.RowIndex].Cells["KeyID"].Value);
                if (string.IsNullOrEmpty(KeyID))
                {
                    return;
                }

                Product.frmProductEdit MyEdit = new frmProductEdit();
                MyEdit.KeyID = KeyID;
                MyEdit.ShowDialog();
                bgLoad.RunWorkerAsync();
            }
        }
        private void dgvMain_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvMain.Columns[e.ColumnIndex].Name.Equals("编辑") && e.RowIndex >= 0)
            {
                string KeyID = Convert.ToString(dgvMain.Rows[e.RowIndex].Cells["KeyID"].Value);
                if (string.IsNullOrEmpty(KeyID))
                    return;

                Product.frmProductEdit MyEdit = new frmProductEdit();
                MyEdit.KeyID = KeyID;
                MyEdit.ShowDialog();
                bgLoad.RunWorkerAsync();
            }
        }