public void GetQCReturnList(string findValue, string whID, DateTime?fromDate, DateTime?toDate) { List <QCReturnHdr> lstQcReturn = null; try { base.ExecutionStart(); base.BeginProcessing("Begin Load data...", "Please Waiting for Loading Data"); using (QCReturnBLL qcReturnBll = new QCReturnBLL()) { lstQcReturn = qcReturnBll.GetQCReturnList(findValue, whID, fromDate, toDate); } this.chkSelect.ClearSelection(); this.grdQCReturn.DataSource = lstQcReturn; this.dntQCReturn.DataSource = lstQcReturn; base.ExecutionStop(); } catch (Exception ex) { XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); } }