DataGrid Grouping - prevent user changes?

I really like the custom Grouping options on the Datagrid:

...but I'd like to not show the Grouped By field and prevent users from changing the Grouping.

Is this what "AllowGrouping" does?

If you add GroupDescriptor programmatically and set AllowGrouping to false the user will unable to group by other columns or remove current grouping.