private void InitializaLOVData() { try { //for warehouse using (QueryBLL queryBll = new QueryBLL()) { List <Warehouse> lstWH = queryBll.GetWarehouse(); if (lstWH != null) { lstWH.Insert(0, new Warehouse { SEQ_NO = string.Empty, NAME = "(All)" }); this.lueWarehouse.Properties.DataSource = lstWH; this.rps_lueWH.DataSource = lstWH; } } //for party using (PartyBLL partyBll = new PartyBLL()) { List <Party> lstParty = partyBll.LovPratyList("C", string.Empty); lstParty.Insert(0, new Party { PARTY_ID = string.Empty, PARTY_NAME = "(All)" }); this.lueCUSTOMER.Properties.DataSource = lstParty; } } catch (Exception ex) { XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); } }