/// <summary> /// vouchertype search combofill function /// </summary> public void VoucherTypeSearchComboFill() { try { VoucherTypeSP spVoucherType = new VoucherTypeSP(); DataTable dtblVouchertype = new DataTable(); dtblVouchertype = spVoucherType.TypeOfVoucherComboFill(); cmbTypeOfVoucherSearch.DataSource = dtblVouchertype; cmbTypeOfVoucherSearch.ValueMember = "voucherTypeId"; cmbTypeOfVoucherSearch.DisplayMember = "typeOfVoucher"; cmbTypeOfVoucherSearch.SelectedIndex = -1; } catch (Exception ex) { MessageBox.Show("VT07:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }