Show list data in UI combo box
Some tooltip text!
• 1 minute to read
• 1 minute to read
The below example demonstrates how we can show the data in a combo box using the NetServer provided lists.
using SuperOffice.CRM.Services;
using SuperOffice;
using (SoSession mySession = SoSession.Authenticate("SAL0", ""))
{
//create a ListAgent
using(ListAgent listAgent = new ListAgent())
{
//retrieve the list you want using the specific method
Country[] countryList = listAgent.GetCountries();
//add the display column you want to the control
foreach (Country countryRow in countryList)
{
cmbCountry.Items.Add(countryRow.EnglishName);
}
}
}