Create a grid of date and time data

Create a data grid that displays motor manufacturing details.
  1. Create the motor manufacturing details label:
    1. In
      Project view
      , right-click
      MainWindow (type)
      , and select
      New
      Base controls
      Label
      .
    2. Hover-over the label, select
      Edit
      , and enter
      DateTimeDataLabel
      .
    3. In
      Properties
      , set
      Text
      to
      Motor manufacturing details
      .
  2. Create the motor 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
      MotorDateTimeGrid
      .
    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 manufacture date column:
    1. In
      Properties
      , next to
      Columns
      , select
      Add
      and select
      Text column
      .
    2. Double-click the column name and enter
      MotorManufactureDateCol
      .
    3. Under
      DataItemTemplate
      , create a dynamic link between
      Text
      and
      Aliases
      {Item}
      Motor
      ManufactureDate
      .
      For more information about dynamic links, see Create dynamic links.
    4. Set
      Title
      to
      Manufacture Date
      .
    5. Create a dynamic link between
      Order by
      and
      Aliases
      {Item}
      Motor
      ManufactureDate
      .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.