• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

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);
    }
  }
}
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top