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
610
Can column level AllowGroupBy override grid settings?
posted

I'd like users to only be able to group by a certain set of particular columns. Some columns make sense to group by (categorical data), others don't (numerical data).

I see that I can set AllowGroupBy at the column level, but it is rather tedious to do this for every column, if we are disabling most of the columns. Is there a way to disable AllowGroupBy on an entire band or the grid itself, and then re-enable it for particular columns? My initial attempts say no.

Parents
No Data
Reply
  • 469350
    Offline posted

    Yes, you can. The AllowGroupBy property exists on both the UltraGridColumn and on the Override object. That means you can set it on the column, the band.Override, or the DisplayLayout.Override.

    So in your case, you will probably want to set it to False on the DisplayLayout and then enable it on only the columns you want.

Children