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 Konstantin ,
In the meantime I found a solution, but I also will try the new 11.1 release.
Regards ,
Hi mileca,
sorry for the late response,
It seams that the my sample code does not work well when the virtualization of the grid is used. If you haven't resolve the issue so far I could suggest you to try the new 11.1 voluem release. We are now shipping a ComboBox column out of the box for xamGrid. If this is not a solution for you I could spent some time to make a wokrind sample.
Regards,
Hi Konstantin,I have use your sample and work ok with small amount of data. When I bind grid to large data source from databases in combo is not corect value. Maybe I'm doing something wrong. Did You notice this? When I add 30 more item to DemoData in your code, in combo is not corect value.
Thanks so much Konstantin, this is exactly what I've been trying to do. I don't know why mine wasn't working, I must have done something wrong.
Many thanks for working on it over the weekend too - I really really apprecaite it.
Hi rhavlick,
I have attached sample solution that might be of help.
It basically add SelectedValuePath property to the ComboBoxColumn which is set to the ComboBox editor in ResolveEditorControl.
In ResolveDisplayElement I used the ComboBox as a proxy and if there is DIsplayMemberPath set to the column textBox's Text property is bound to comboBox.SelectedValue and the path of the binding is DispalyMemberPath.
Regards