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
135
Can UltraGrid support TemplateAddRow when grid uses ControlContainerEditor?
posted

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,

Parents
  • 469350
    Offline posted

    Hi,

    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.

Reply Children