Defines the collection of fields by which the groups are created.
Remarks
Property specifies schema fields by which data are grouped in the control. In runtime it is possible to remove any group or to add optional number of groups in the control. It is possible to determine whether groups are expanded or collapsed when the user interface is opened. To learn more on how to do this, see chapter ExpandGroups Property.
Group fields are determined in GroupField Collection Editor tool. Tool contains two commands for managing group fields.
Command | Description |
---|---|
Add | Adds new item to the Members list. Property for each item is displayed in the list on the right. FieldName property is used to determine the field by which the data will be grouped. |
Remove | Removes selected item from the Members list. |
It is possible to determine any number of group fields by which the data is organized in the control in runtime.
Example (MxSpace)
To see the defined GroupFields 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 field ArticleCode defined in GroupFields property.
To define GroupFields 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 GridProperties in GroupFields open GroupField Collection Editor .
- Click Add button in order to add new element.
- In property FieldName select the desired field (ArticleCode) from the list of schema fields.
- Click OK.