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[0].Columns["ColumnKey"].EditorComponent = ruleTypeDropdown; e.Layout.Bands[0].Columns["ColumnKey"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; e.Layout.Bands[0].Columns["ColumnKey"].CellClickAction = CellClickAction.Edit;
this.gridCapRules.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.TemplateOnBottom;
Hello Sam,
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.
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.
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:
https://es.infragistics.com/community/forums/f/ultimate-ui-for-windows-forms/120611/ultracomboeditor-no-items-showing-despite-datasource-being-valid-table
Please review it and the sample and let me know if you have any questions.