Hi, in my winform app i have several UltraComboEditor and whenever a user select a different item the UI get irresponsive because the UltraComboEditors retains focus and prevent other controls to get focused. This only happens when the user select a different item, if users click the same current item everithing is ok.
I have the UltraComboEditor bound to bindingsource controls which have the datasource as collections of bussines objects loaded from db, in those BO i overrided the ToString() property and that is the text displayed in the UltraComboEditors, no DisplayMember/ValueMember used here, those UltraComboEditors are binded to a properties which reference entities.
Thanks for your help.
Elio
Hi Elio,
Are you binding any properties of the control, like Value, in addition to binding the list? One reason this might be happening is if the ValueMember of the combo does not match the data type the value is bound to. The underlying data source might be raising an exception because of mismatched data types which the BindingManager is catching.
Another thing to check is the LimitToList property. Has that been set to true?
Are you handling the Validating event of the control and cancelling that?
Hi Mike, this is what i have in .designer file ppart of this--------------EmployeeView.designer.cs----------------//dptoUltraComboEditorthis.dptoUltraComboEditor.AutoComplete = true;this.dptoUltraComboEditor.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.employeeBindingSource, "Department", true));this.dptoUltraComboEditor.DataSource = this.departmentsBindingSource;this.dptoUltraComboEditor.DisplayMember = "Name";this.dptoUltraComboEditor.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;this.dptoUltraComboEditor.SyncWithCurrencyManager = false;
//departmentsBindingSourcethis.departmentsBindingSource.DataSource = typeof(CDC.Core.Domain.Department)------------------------------------------------------------------------
------------EmployeeView.cs----------------------------------departmentsBindingSource.DataSource=departemts //departemts is a List<Department> loaded from db-------------------------------------------------------------------------*Another thing to check is the LimitToList property. Has that been set to true? ->Nop*Are you handling the Validating event of the control and cancelling that? ->NopThanks for your time Mike