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
2549
UltraComboEditor bound to ValueList in UltraWinGrid is editable even if DropDownStyle = DropDownStyle.DropDownList
posted

Hi all,

I just stumbled into the following problem.
In my UltraWinGrid I assigned an UltraComboEditor to a column as EditorComponent.
The UltraComboEditor is bound to a ValueList via its ValueList property. Its DropDownStyle is set to DropDownList.

Now if I try to edit the cell the UltraComboEditor is shown, but it is editable (I can actually type something) which leads to errors when typing something that is not part of the ValueList.

I just want the user to select from the list, not actually type some text that I then have to validate...

The exactly same setup works if the UltraComboEditor is placed on the form -> not editable...

Is that possible or am I missing something? 

Any help is kindly appreciated,
best regards
Andy 

Parents
No Data
Reply
  • 71886
    Verified Answer
    Offline posted

    Hello Andy,

    What you are missing might be setting the grid column style to DropDownList, so please try out the following:

        ultraGrid1.DisplayLayout.Bands[0].Columns[0].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;

    Let me know if it solves your issue.

Children