If I would like to display 10 000 items in a combobox (just an example), loading a List from disk is fast, but when I set the DataSource it's slow. Is there a way to just point to the data and not convert it into the combobox collection.
List<string> myitems = getItems();
ComboBox box = new ComboBox();
box.DataSource = myitems; // <--- Takes a long time
Coming from Delphi where everything is a StringList I find all the different collections a bit weird, why don't they just use List<T>
or some other class not coupled so tight with the control?
In Delphi:
textbox.lines = myitems
listbox.items = myitems
combobox.items = myitems
all just sets a pointer to the same data, ie instant.