Configure a Data grid
Configure a
Data grid
object to get data from a project node or a database.- InProject view, create or select aData gridobject.
- InProperties, create a dynamic link between theModelproperty and a node.Selected nodeCombo boxDatabase objectValues contained in database tables.Project nodeValues of attributes or properties of all direct child nodes.For more information about dynamic links, see Create dynamic links.
- (optional) Specify the kind of items to display in the object by settingItemKind.TIP:TheItemKindproperty is automatically set with the object or variable type recognized among the child nodes.For example, if the model is based on a folder node that contains several instances of aMotorobject type,ItemKindis automatically set with the reference to theMotortype. In this case, the values that display are the attributes or properties of different instances (Motor1,Motor2,Motor3, and so on).
- Add columns to the grid by selectingAddColumns.
- Configure columns by setting theTextandTitleproperty values.
- (optional) InEvents, associateSelection changedwith theRefreshmethod.The items contained in the object refresh each time you interact with it.
- (optional) Sort items by settingSort orderandOrder byvalues.
Provide Feedback