Hi,
Using Infragistics 9.2, LLBLGen Pro v2.6 and are having issue with the UltraCombo
We have OrderStatus ultracombo with datasource datatable with 4 rows values
if we lookup an order with Active status, bind the order to the dropdown like following
StatusDropDown.DataBindings.Add("Value", this.CurrentOrder, "OrderStatusID");
The combo shows all four of items in the list with active selected. Now we lookup and bind other order with status Completed as
StatusDropDown.DataBindings.RemoveAt(0);
But now the combo has only one item which is Completed, while debugging the combo.Row.Count still show 4 items, further only Completed row was found to be Hidden = false while all other rows are hidden= true. The other 3 rows were found to be filtered Out as the rows.FilteredInRowCount show value 1. We tried to clear filter but no luck
StatusDropDown.Rows.ColumnFilters.ClearAllFilters()
then
StatusDropDown.DisplayLayout.Override.AllowRowFiltering = Infragistics.Win.DefaultableBoolean.False;
But nothing worked, except re-assigning the datasource to the datatable again.
Why does it required to re-assign the same datasource each time we databind to new order entity ?
-Shekhar
HI Shekhar,
The UltraCombo does not have any automatic filtering in it. Something in your code must be setting te Hidden property on the row(s) to true, or else applying filters to the combo.
Hello Mike,
Yes, there is a code to hide and unhide rows in InitializeLayout event which I believe runs when we assign a datasource, but this never runs while DataBinding to next entity. (the breakpoint doesnt get hit when debugging)
As soon as next entity is binded, I noticed StatusDropDown.Rows.FilteredInRowCount becomes 1 but StatusDropDown.Rows.Count is still 4.
Thanks
Shekhar