private void BoundGridView() { IList <string> binCodeList = new List <string>(); if (this.tbBinCode.Text != null && this.tbBinCode.Text.Trim().Length > 0) { binCodeList.Add(this.tbBinCode.Text); } IList <string> itemCodeList = new List <string>(); if (this.tbItemCode.Text != null && this.tbItemCode.Text.Trim().Length > 0) { itemCodeList.Add(this.tbItemCode.Text); } IList <CycleCountResult> cycleCountResultList = TheCycleCountMgr.ListCycleCountResult(Code, cbShortage.Checked, this.cbProfit.Checked, cbEqual.Checked, binCodeList, itemCodeList); this.GV_List.DataSource = cycleCountResultList; this.GV_List.DataBind(); UpdateView(); }