I have a grid wich has in it's "add new" row a ultraCombo. For the other rows, on the same colum, the cells are uneditable. After a new row is inserted, in the new row, on that column instead of having a uneditable cell, i have the same ultraCombo.
Any ideea why, or could i stop that?
Thanks!
It depends how you applied it. If you set it on the cell, then you can just set the property on the cell (either Editor, EditorControl, or ValueList - whichever you one set initially) to null.
If you applied the combo to the entire column, then it depends which property you set.
I'm not sure that clearing out the Combo is a good idea, anyway, though. If the combo is translating DataValue to DisplayText, then you will lose this translation when you remove the combo from the column. You are better off leaving it there and simply disabling the rows or cells.
" ....and then clear it out when it gets committed."
This would be the solution for me, but how can i do this?
It sounds like you need to set the Activation property on the row once it goes from being an AddNew to a normal row so that the user cannot edit it any more.
Or, you will have to assign the UltraCombo only to the cell in the (Template)AddNewRow and then clear it out when it gets committed.
You have the UltraCombo, but can you change its value? Anyway, you can assign the combo to the cell only and not for the whole column. In the event handler where you set the activation of the template row, you can assign the combo to a single cell in that row.