C1.Combobox as Editor on FlixGrid Column

Posted by: santer.p75 on 14 August 2023, 5:28 am EST

  • Posted 14 August 2023, 5:28 am EST - Updated 14 August 2023, 5:33 am EST

    Hi,

    i will use the C1.ComboBox as editor on a Felx Grid Column.

    I asigned the Combo Box as editor in the FlexGrid Column.

    But when i select a entry of the Combobox the Shown Text is the ItemsValueMember not the ItemsDisplayMember Text… What i do wrong?



    My Project.zip

  • Posted 16 August 2023, 1:02 am EST

    Hi,

    When a value is picked from the C1ComboBox, it returns the ItemsValueMember to the grid’s cell, and the grid only retains this value. The C1ComboBox’s ItemsDisplayMember and ItemsValueMember properties only affect the C1ComboBox and have no influence on the C1FlexGrid. This is the expected behavior of the C1FlexGrid and C1ComboBox.

    For your requirement, you will need to create a Dictionary with the same Key-Description pairs as the DataTable assigned to C1ComboBox. Then, you will need to assign it to the DataMap property of the FlexGrid’s Column. Please see the attached sample project for reference.

    FlexGrid.ComboBoxEditor.zip

    Best Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels