Hi,
I have a problem when I use ControlContainerEditor in ultragrid. I want to use the templateAddRow to add new row in the grid. So I set the AllowAddNew to be "TemplateOnTop" and I use the same control for Editor and Rendering. When the grid is empty it shows the new template row and I can input data in that new row. But the problem is unlike normal grid it can not automatically save the new row and add another template new row on the top. So that I can't create new row by using templateAddRow method.Does anyone know how to implement this?
Thanks,
My guess is that there's a problem with the control you are using for editing. The grid has to get a notification from the editor that something in the cell has changed. So your control needs to fire an event whenever the property that contains the value changes. So if you are using a property called Value, then your control need to fire a ValueChanged event. Or, if you are using the latest version, I think we also have support for INotifyPropertyChanged.
Actually I already implemented INotifyPropertyChanged interface for the class which is bound to the editor and rendering control. For existing rows the grid can update properly but it can't update when the row is the TemplateAddNew row. I will try to raise ValueChanged event to see if it works and check my codes to see if my codes have bugs. Thanks,