This question is locked. New answers and comments are not allowed.
Greetings,
I'm trying to use GridViewComboBoxColumn as editable column with sort of suggestions to user as what values should be entered. Problem is, I can't make GridView to display or accept values that are not in combo box.
In edit mode it rejects any value not on list, either giving empty value, or picking value from list that starts with user entered value (eg. user enters 45, which is not on list and it fills in 4567, even if user manually deletes autocompleted 67 and changes focus to different cell).
If data is loaded into GridView that contain values in combobox column that are not on the list, these are not shown. I would understand it in situations where actual data is different from displayed data, but that is not my case.
What am I doing wrong?
GridViewComboBoxColumn is defined this way:
And is filled with items this way:
(RIA context + ADO.NET)
I'm trying to use GridViewComboBoxColumn as editable column with sort of suggestions to user as what values should be entered. Problem is, I can't make GridView to display or accept values that are not in combo box.
In edit mode it rejects any value not on list, either giving empty value, or picking value from list that starts with user entered value (eg. user enters 45, which is not on list and it fills in 4567, even if user manually deletes autocompleted 67 and changes focus to different cell).
If data is loaded into GridView that contain values in combobox column that are not on the list, these are not shown. I would understand it in situations where actual data is different from displayed data, but that is not my case.
What am I doing wrong?
GridViewComboBoxColumn is defined this way:
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding somecolumn}" Header="whatever" UniqueName="somecolumn" IsComboBoxEditable="True" SelectedValueMemberPath="somecolumn" DisplayMemberPath="somecolumn"/>((GridViewComboBoxColumn)this.dgData.Columns["somecolumn"]).ItemsSource = context.somecolumn_datas;