MX-Frame Library Send comments on this topic.
GroupFields
See Also
MX-Developer > User Interface - MxPart > Controls > Control Properties > GridProperties > GroupFields

Glossary Item Box

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

  1. In Solution Explorer open MxPart component (StockPart) which contains the control (Grid).
  2. Select the desired control (Grid) on the canvas.
  3. Open Property Window.
  4. In section GridProperties in GroupFields open GroupField Collection Editor .
  5. Click Add button in order to add new element.
  6. In property FieldName select the desired field (ArticleCode) from the list of schema fields.
  7. Click OK.

See Also

©2009 Metronik. All Rights Reserved.