Drop Down Box & Grid

Posted by: GetInfo on 6 December 2021, 6:21 am EST

    • Post Options:
    • Link

    Posted 6 December 2021, 6:21 am EST

    I want to bind a drop down box to a table and use this to fill one or more cells in a grid. The drop down lists the stock items and the user searches the drop down and selects the item being sold which populates the grid.

    Which would be the best grid VS 2019 Net 5? Best drop down?

    Thanks

  • Posted 7 December 2021, 7:36 am EST

    Hi,

    You can use the C1FlexGrid and the ComboBox control to achieve your requirements.

    If you want to use the ComboBox inside the C1FlexGrid cells, you can directly assign a ComboBox to the Editor property of the required column and update other cell values in the SelectedIndexChanged event of the ComboBox.

    If you want to use the ComboBox to populate the C1FlexGrid, then you can handle Combobox’s SelectedIndexChanged event, to Bind the grid to a DataSource according to the Selected value in the grid.

    Kindly refer to the attached sample demonstrating both approaches.

    Please let us know if you need any other information.

    Regards,

    Avnish

    GridDropDown_C1FG.zip

  • Posted 7 December 2021, 8:21 am EST

    Thank you. It is perfect.

Need extra support?

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

Learn More

Forum Channels