Update items and values of IWCombobox

<< Click to Display Table of Contents >>

Navigation:  Forum >

Update items and values of IWCombobox

Forum link

 


 

12-16-2020, 10:49 PM:

 

Hi,

 

How can I update the Names and Values of TIWCombobox.Items in an asynchronous event in runtime?

 

Background: 

 

I have a array of records which is used to update TIWCombobox.Items asynchronously.

 

This combobox has 'ItemsHaveValues' enabled because I need access to the value of the items.

 

If I update the Items property using Combobox.Items.Add('Item 1=Value1') the combobox displays only the 'Value1'

 

Thanks!

 


 

12-17-2020, 02:15 AM:

 

Hi, after update your combobox:

 

ComboBox.RefreshItems;

 


 

12-17-2020, 03:26 PM:

 

(12-17-2020, 02:15 AM)Jose Nilton Pace Wrote: [ -> ]Hi, after update your combobox:

 

ComboBox.RefreshItems;

 

Wow, that simple huh :-) 

 

Thx!