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
4032
ViewStyleBand = OutlookGroupBy and AllowAddNew not working
posted

Hello,

I have setup my grid with ViewStyle.OutlookGroupBy and AllowAddNew.TemplateOnBottom. If I drag one column header to the group box to group by this column, the template new row are not showed anymore.

How I have to configure the grid that the new row template is showed when the grid is grouped?

I use version 13.2 with service relaese 2054.

Thanks for your help.

Markus

Parents
No Data
Reply
  • 2165
    Verified Answer
    posted

    Hello Markus,

    Currently UltraGrid does not support build-in  “add a new row” feature  when grid is grouped by some column. A way to work around this  is to add  a button on the Form  when the grid is in Group By mode, which adds record  directly to your data source (you could implements some form for input data) when the user clicks it. Because the grid is bonded with the data source the changes of the source will occur in the UltraGrid too, and you should note that customer will not have any visual indication (like expanding the group and highlighted of the new added row) that the new row appears  in any of the groups.

    I’ve implemented this suggestion in a simple sample, and you could run and evaluate it, please see attached zip.

    I hope that this will helps you.

    ShowRowTemplate.zip
Children
No Data