Dear all,
unfortunatly I have problems with the UltraDropDown. At the moment I have this:
for (int irow = 0; irow < grid.Rows.Count; irow++) { UltraDropDown Combobox = new UltraDropDown(); Combobox.SetDataBinding(dt, null); Combobox.DisplayMember = "Col1"; Combobox.ValueMember = "Col2"; grid.Rows[irow].Cells["CB"].ValueList = Combobox;
grid.Rows[irow].Cells["CB"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDown; }
but no DropDown-Menu is shown. What is wrong?
dt is a Datatable with 5 Columns (Col1,Col2,...,Col5) and shall be bound to grid during runtime.
Thank you in advance
Best regards
Alex
Hi Alex,
It's probably because the UltraDropDown control you are creating here is not parented to the form and thus has no BindingContext. Add the control to the form's Controls collection or set a BindingContext on it.
Hi Mike,
thanks for your reply. The reason was much simpler. Half an hour ago I set AllowUpdate to true and everything works quite perfect now (no idea why it was set to false so far). Sorry for wasting your time for such a stupid Newby-Question.