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
907
Is they any way to configure the dropdown list on a column at run time?
posted

During the constructor of the editor that as the ultragrid, I want to create the dropdown lists for each column that needs it.  Currently I've assigned a comboEditor to each column and I configure those at run time, but would be nice if I can just configure the column directly and use the native drop down behavior of the grid without having to use additional controls.

Parents
No Data
Reply
  • 17259
    Verified Answer
    Offline posted

    Use a ValueList.

    var list = grid.DisplayLayout.ValueLists.Add();

    list.ValueListItems.Add(...

    grid.DisplayLayoutBands[0].Columns[key].ValueList = list.

    You can also cell a different value list for each cell, and use a BindableValueList that can get a data source.

Children