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
130
UltraCombo hiding rows after databinding
posted

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

  1. Active
  2. Filled
  3. Completed
  4. Cancelled

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);

StatusDropDown.DataBindings.Add("Value", this.CurrentOrder, "OrderStatusID");

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