Defines whether it is possible to group data in the control.
Remarks
Property specifies if it is possible to define groups by which data is organized in the control. It is possible to define groups in design time. This is done by setting property GroupFields. It is also possible to define groups in runtime by dragging desired fields to the group pane.
If property is set to True, records can be arranged into groups by every field. Groups can also be created and managed in runtime fully by the end user. This property only enables grouping but does not set any group.
If property is set to False, the group pane is not available therefore the data cannot be grouped. The default value for this property is False.
It is also possible to define whether groups defined in design time are expanded on user interface start up or not. This is achieved by defining appropriate value in property ExpandGroups.
Example (MxSpace)
To see the defined AllowGrouping property on a control (Grid) open MxSpace solution project in Visual Studio. In Solution Explorer expand node Parts and double click StockPart.cs. Click the Grid control for displaying stock and open Property Window. See the value True defined in AllowGrouping property.
To define AllowGrouping property
- In Solution Explorer open MxPart component (StockPart) which contains the control (Grid).
- Select the desired control (Grid) on the canvas.
- Open Property Window.
- In section (Grid)Properties in AllowGrouping property select the desired value (True).