gridview - DevExpress ComboBoxEdit in Grid does not drop down -
i have devexpress grid
control dynamically loaded datatable
. columns loaded datatable except 1 in want use comboboxedit
selecting 3 different values.
all rows show correctly, , comboxbox shows in grid each row. however, can't drop down. no matter there seems no values in dropdown, or not drop down other reason. when add value column shows in grid, still no response when clicking dropdown-button on combobox.
the user should able select 1 of 3 values, not type or add values.
here's call add rows gridview:
f1grid.datasource = accounts; f1grid.refreshdatasource(); f1gridview.refreshdata();
this code i'm using initialize repository combobox:
repositoryitemcombobox repositoryitembetvillk = new repositoryitemcombobox(); repositoryitembetvillk.items.clear(); repositoryitembetvillk.items.addrange(new string[] { "12", "24", "36"}); repositoryitembetvillk.showdropdown = showdropdown.singleclick; repositoryitembetvillk.allowdropdownwhenreadonly = defaultboolean.true; repositoryitembetvillk.dropdownrows = 3; repositoryitembetvillk.enabled = true; repositoryitembetvillk.readonly = true; repositoryitembetvillk.texteditstyle = texteditstyles.standard; repositoryitembetvillk.usectrlscroll = false; f1gridview.columns["betvillk"].columnedit = repositoryitembetvillk;
why doesn't dropdown work? missing vital in initalization?
help me, stackoverflow, you're hope!
i started same codebase , had same issue person posted. changed following make work:
repositoryitembetvillk.readonly = false;
Comments
Post a Comment