private void frmOPInvoiceReturnReason_Load(object sender, EventArgs e) { clsDcl_Charge dcl = new clsDcl_Charge(); DataTable dt = dcl.GetRefundReasonList(this.flagId); EntityInvoiceRefundReason vo = dcl.GetInvoiceRefundReason(this.flagId, this.inVoNo); dcl = null; if (dt != null) { foreach (DataRow dr in dt.Rows) { this.cboReason.Items.Add(dr["freason"].ToString()); } } if (vo != null) { this.cboReason.Text = vo.reason; } }