public MarketListProvider(string defaultText = null) { if (!string.IsNullOrEmpty(defaultText)) { Add(string.Empty, defaultText); } ProfileBL _profile = new ProfileBL(); List <string> lst = _profile.GetMarketList(); Add("ALL", "MARKET"); for (int i = 0; i < lst.Count; i++) { Add(lst[i], lst[i]); } }