Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Infragistics.Win.UltraWinGrid.UltraCombo taking longtime to load for 10000 records
posted

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?

 

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    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.

Reply Children
No Data