private void BindList() { try { if (txt_cust_no.Text.Trim() == "" && txt_cust_name.Text.Trim() == "") { MessageBox.Show("请输入客户编码或客户名称再进行查询!"); return; } WaitingFrom.ShowWait(""); DataTable dt = bllCUST.GetCustomer(this.txt_cust_no.Text.Trim(), this.txt_cust_name.Text.Trim(), "").Tables[0]; gc_StdMain.DataSource = dt; gv_StdMain.BestFitColumns(); SetGridViewRowNum.SetRowNum(gv_StdMain); WaitingFrom.CloseWait(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }