MultipleSelection Behaviour

Hi Team!
Here is an example of a problem I am experiencing when using Selects with MultipleSelection = True
I need to populate a multi-select box and pre-set certain items as selected in code BEFORE any user interaction. Here is an example:
with CustomiseSelect.SelectBoxList[0].Items.Add do
begin
Caption := MyQuery1.FieldByName('itemname').AsString;
Value := MyQuery1.FieldByName('itemno').AsString;
Selected := True;
Disabled := False;
end;
The problems is that the line "Selected := True;" just doesn't seem to work. I can read this property OK after user interaction to assess what options they have selected, but I can find no way to pre-set the selections and display it to the user to begin with.
Are my expectations of this components behaviour correct, or should I be using a different method?
Many thanks
Stuart.
Here is an example of a problem I am experiencing when using Selects with MultipleSelection = True
I need to populate a multi-select box and pre-set certain items as selected in code BEFORE any user interaction. Here is an example:
with CustomiseSelect.SelectBoxList[0].Items.Add do
begin
Caption := MyQuery1.FieldByName('itemname').AsString;
Value := MyQuery1.FieldByName('itemno').AsString;
Selected := True;
Disabled := False;
end;
The problems is that the line "Selected := True;" just doesn't seem to work. I can read this property OK after user interaction to assess what options they have selected, but I can find no way to pre-set the selections and display it to the user to begin with.
Are my expectations of this components behaviour correct, or should I be using a different method?
Many thanks
Stuart.