Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
565
XamWebGrid AddNewRow ComboBox problem
posted

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.