public void GetQCReturnDetail(string returnNo) { try { using (QCReturnBLL qcReturnBll = new QCReturnBLL()) { this.dtbQCReturnDtl = qcReturnBll.GetQCReturnDetail(returnNo); } if (this.dtbQCReturnDtl != null) { this.grdQCReturnDetail.DataSource = this.dtbQCReturnDtl; } } catch (Exception ex) { XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); } }