Hello,
Does anyone know if there is a way to allow the cell being edited in the Grid to be able to display a combo for the user to select an option OR allow the user to type text into the editing cell that isn't in the combo's list? It seems as if the combo is read only or only allows selection of what's in the list.
Thanks
Hi,
XamGrid does not supports ComboBox columns out of the box at the moment, this feature will be included in our next volume release. However you could implement this as CustomColumn - to learn how to do so take a look at Devin Rader's blog post. This approach uses the ComboBox control from MS sdk which does not support editing.
Another approach is described in this forum thread where XamComboEditor is put inside an EditorTemplate of a Template column. Using this approach you should set CustomValueEnteredAction="Add" if you want the typed text to be added to the XamComboEditor's ItemSource.
HTH
Konstantin,
I implemented Devin Raders ComboBox column back in January, now the project I'm working on needs to have a grid that has an integer as the cell's value (the employee's ID) - and display the employee's name, and have the combo box allow the user to select an employee from the list.
Is this something that's possible? In the ResolveDisplayElement, could something do a lookup of items bound to the combo's Itemsource and retrieve the employee name if it knows the employee ID? (Kind of like a basic lookup in a combo box where if you have a SelectedValuePath = xxx and then the DisplayMemberPath = yyy)
Thanks.
Great, thanks, exactly what I was looking for. Can't wait for the next version to come out. Seems like there are some great improvements on the way.