Create a data grid

Create a data grid that shows motor properties, including: speed, acceleration, and torque.
  1. Create the data grid:
    1. In the
      Project view
      pane, right-click
      MainWindow (type)
      and select
      New
      Data controls
      Data grid
      .
    2. Hover-over the data grid, select
      Edit
      , and enter
      MotorDataGrid
      .
    3. In the
      Properties
      pane, create a dynamic link between the
      Model
      property and
      ProjectName
      Model
      MotorObjects
      .
      For more information about dynamic links, see Create dynamic links.
  2. Configure the motor name column:
    1. In the
      Properties
      pane, double-click
      DataGridColumn1
      and enter
      MotorNameCol
    2. Under
      DataItemTemplate
      , create a dynamic link between the
      Text
      property and
      Aliases
      {Item}
      Motor@BrowseName
      MANCIA: 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
      MANCIA: 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 the
      Title
      property value to
      Motor Name
  3. Create the motor speed column:
    1. In the
      Properties
      pane, 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 the
      Text
      property and
      Aliases
      {Item}
      Motor
      Speed
      .
      For more information about dynamic links, see Create dynamic links.
    4. Set the
      Title
      property value to
      Speed
  4. Create the motor acceleration column:
    1. In the
      Properties
      pane, 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 the
      Text
      property and
      Aliases
      {Item}
      Motor
      Acceleration
      .
      For more information about dynamic links, see Create dynamic links.
    4. Set the
      Title
      property value to
      Acceleration
  5. Create the motor torque column:
    1. In the
      Properties
      pane, 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
Fornire un feedback
Hai domande o feedback su questa documentazione? invia il tuo feedback qui.