Create a data grid

Create a data grid that shows motor properties, including: speed, acceleration, and torque.

Prerequisites

Create Motor objects.

  1. Create the data grid:
    1. In Project view, right-click MainWindow (type) and select New > Data controls > Data grid.
    2. Hover-over the data grid, select Edit, and enter MotorDataGrid.
    3. In Properties, create a dynamic link between Model and ProjectName > Model > MotorObjects.

      For more information about dynamic links, see Create dynamic links.

  2. Configure the motor name column:
    1. In Properties, double-click DataGridColumn1 and enter MotorNameCol
    2. Under DataItemTemplate, create a dynamic link between the Text property and Aliases > {Item} > Motor@BrowseName
      Tip: You can select the @BrowseName attribute by selecting it from the Attribute drop-down menu at the bottom.

      For more information about dynamic links, see Create dynamic links.

    3. Crete a dynamic link between the Order by property and Aliases > {Item} > Motor@BrowseName
      Tip: You can select the @BrowseName attribute by selecting it from the Attribute drop-down menu at the bottom.

      For more information about dynamic links, see Create dynamic links.

    4. Set Title to Motor Name
  3. Create the motor speed column:
    1. In Properties, next to Columns, select Add and select Text column.
    2. Double-click the column name and enter MotorSpeedCol
    3. Under DataItemTemplate, create a dynamic link between Text and Aliases > {Item} > Motor > Speed.

      For more information about dynamic links, see Create dynamic links.

    4. Set Title to Speed
  4. Create the motor acceleration column:
    1. In Properties, next to Columns, select Add and select Text column.
    2. Double-click the column name and enter MotorAccelerationCol
    3. Under DataItemTemplate, create a dynamic link between Text and Aliases > {Item} > Motor > Acceleration.

      For more information about dynamic links, see Create dynamic links.

    4. Set Title to Acceleration
  5. Create the motor torque column:
    1. In Properties, next to Columns, select Add and select Text column.
    2. Double-click the column name and enter MotorTorqueCol
    3. Under DataItemTemplate, create a dynamic link between the Text property and Aliases > {Item} > Motor > Torque.

      For more information about dynamic links, see Create dynamic links.

    4. Set the Title property value to Torque

Create a report object.