I have an ownerdrawn ListBox to bind a form (Windows Forms) to a data source (BindingList). I need to be given the opportunity to select all the items very quickly (up to 500,000).
This is what I am doing now:
for (int i = 0; i < listBox.Items.Count; i++) listBox.SetSelected(i, true);
This is incredibly slow and unacceptable. Does anyone know a better solution?
source share