Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / UltraComboEditor set as EditorComponent of a UltraGrid column is always empty

UltraComboEditor set as EditorComponent of a UltraGrid column is always empty

New Discussion
Sam Boustani
Sam Boustani asked on Aug 2, 2021 1:59 PM

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;

 

Sign In to post a reply

Replies

  • 0
    Ivan Kitanov
    Ivan Kitanov answered on Aug 2, 2021 9:09 AM

    Hello Sam,

    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://www.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.

    Regards,
    Ivan Kitanov

    • 0
      Sam Boustani
      Sam Boustani answered on Aug 2, 2021 1:50 PM

      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.

      • 0
        Ivan Kitanov
        Ivan Kitanov answered on Aug 2, 2021 1:59 PM

        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

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Sam Boustani
Favorites
0
Replies
3
Created On
Aug 02, 2021
Last Post
5 years, 1 month ago

Suggested Discussions

Created by

Created on

Aug 2, 2021 1:59 PM

Last activity on

Feb 24, 2026 1:57 PM