//查询一个产品记录 private void queryProduct() { // QueryPartsForm o = new QueryPartsForm(); AdvancePartsQuery o = new AdvancePartsQuery(); o.StartPosition = FormStartPosition.CenterParent; if (o.ShowDialog() == DialogResult.OK) { this.dgv_ProductList.DataSource = o.m_partsList; this.ucPaging1.SourceDataGridView = this.dgv_ProductList; } }