AllowGroupingModification Property
See Also  Example
Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > GroupByControl Class : AllowGroupingModification Property

Gets or sets a value indicating whether modifications to groups in the corresponding grid or detail can be made by the end user through the group-by control.

Syntax

Visual Basic (Declaration) 
Public Property AllowGroupingModification As Boolean
C# 
public bool AllowGroupingModification {get; set;}

Return Value

true if modifications to groups in the corresponding grid or detail can be made by the end user; false otherwise.

Example

All examples in this topic assume that the grid is bound to the Orders table of the Northwind database, unless stated otherwise.
The following example demonstrates how to bind a grid to the Orders table and prevent columns from being sorted and reordered and groups from being created or removed. By default, the ShipCountry and ShipCity columns will be sorted, grouped, and fixed.
XAMLCopy Code
<?XML:NAMESPACE PREFIX = Grid xmlns /><Grid xmlns:xcdg="http: datagrid"<crlf xaml wpf schemas.xceed.com>      xmlns:d="clr-namespace:System.Windows.Data;assembly=PresentationFramework"<CRLF>      xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase"><CRLF><CRLF>  <GRID.RESOURCES><CRLF>    <?xml:namespace prefix = xcdg /><xcdg:DataGridCollectionViewSource x:Key="cvs_orders" 
                                    Source="{Binding Source={x:Static Application.Current}

Remarks

The AllowGroupingModification property only affects end-user interaction and does not prevent grouping from being modified programmatically.

Requirements

Supported Frameworks: Microsoft .NET Framework version 3.5

See Also