This is using 2010.1 release, which may be a bit dated. I don't have much flexibility in upgrading this.
I have the template column editor template set to a combo box. On the CellEnteredEditMode event, the editor property is expected to be of type ComboBox so that I can populate the item source.
For regular data rows, this works correctly.
However, for the "add new row" row, the editor type is still TextBox. It seems it isn't until after this event is fired does the editor change to a ComboBox.
In this case, how can I set the items source to a distinct list of the values in that column?
Edit: If I make at least one other column into a ComboBox as well, then it works.
Hello,
I have been looking into your issue and I can suggest you download our latest version of our NetAdvantage product where you can use ComboboxColumn with XamGrid. Meanwhile I am attaching a sample application(TemplateColumnWithCombo.zip) where the desired functionality is achieved using TemplateColumn.
If you have any other questions on this matter, feel free to ask.
Thanks for looking into this. I was able to work around it by defining more columns. The issue occured when there was only one template column with a combobox and the other columns were auto generated. After defining all the columns manually (as TextColumn except for the one with combobox) it worked fine.
I have created a new post with another issue where the combo box SelectedItem is null after entering edit mode: Problem: ComboBox SelectedItem = null when enter edit mode