Hi,
I am assigning 10000+ records to UltraCombo using Data Binding Source in WinForm.
UltraCombo has only one column. It is taking a bit long time. Screen is getting locked.
I am using Form_Arctivate() event for assigning records to UltraCombo from Data Binding Source.
Can anyone tell me, if it can be made faster?
Why are you using Form_Activate? Are you aware that this event will fire any time the form gets focused? So if you switch to another form and back you will end up re-populated the Combo, which is probably not neccessary.
Anyway... by default the UltraCombo uses binary searching to find matching items on the list when the user types into it. In order to do that, it has to keep an internal sorted list of values. So if the Combo is taking a long time to initialize itself, it's probably the building of the sorted list that is causing it.
You can turn this off by setting the DropDownSearchMethod property to Linear. This will stop the combo from building the list and using binary searching, so that will make the combo slower for the user, but there's won't be a big delay up front.
Thanks Mike, it worked. Form_Activate() we need to refresh form since it is dependent on other child MDI forms.