I have an UltraComboEditor that has a datasource and shows as having items in it when looking at the datasource property in a breakpoint. This combo is added as the EditorCompoent of a grid cell. The combo shows up in the grid's add new row template, but it does not have values (empty dropdown). I confirmed that the datasource has items, so not sure why the dropdown does not.
I have another form with similar code and that dropdown is fine, so not sure why this one is not. Did I miss setting a property on the grid, row, or anything else?
e.Layout.Bands.Columns["ColumnKey"].EditorComponent = ruleTypeDropdown; e.Layout.Bands.Columns["ColumnKey"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; e.Layout.Bands.Columns["ColumnKey"].CellClickAction = CellClickAction.Edit;
this.gridCapRules.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.TemplateOnBottom;
There is a similar forum post regarding this issue, which resolves it by adding the following line: editor.BindingContext = this.BindingContext;
It also includes a small sample application, which demonstrates the solution. Below you can find the link for the post:
Please review it and the sample and let me know if you have any questions.
Regards, Ivan Kitanov
It was my fault and forgot to delete my post. In case this helps someone with a similar issue, I had a filter on my data source but never executed the query (LINQ in this case) so adding ".ToList()" properly filled the dropdown.
I’m glad that you managed to resolve your issue and thank you for sharing it with the community!
Please let us know if you need any additional assistance.