Create a grid of numeric data

Create a data grid that shows motor properties, including motor name, speed, and acceleration.
  1. Create the motor parameters label:
    1. In
      Project view
      , right-click
      MainWindow (type)
      , and select
      New
      Base controls
      Label
      .
    2. Hover-over the label, select
      Edit
      Edit
      , and enter
      NumericDataLabel
      .
    3. In
      Properties
      , set
      Text
      to
      Motor parameters
      .
  2. Create the numeric 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
      Edit
      , and enter
      MotorNumericGrid
      .
    3. In
      Properties
      , create a dynamic link between
      Model
      and
      ProjectName
      Model
      MotorObjects
      .
      For more information about dynamic links, see Create dynamic links.
  3. 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
  4. Create the motor speed column:
    1. In
      Properties
      , next to
      Columns
      , select
      Add
      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
  5. Create the motor acceleration column:
    1. In
      Properties
      , next to
      Columns
      , select
      Add
      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
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.