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 the
      Project view
      pane, right-click
      MainWindow (type)
      , and select
      New
      Base controls
      Label
      .
    2. Hover-over the label, select
      Edit
      , and enter
      DateTimeDataLabel
      .
    3. In the
      Properties
      pane, set the
      Text
      property value to
      Motor manufacturing details
      .
  2. Create the motor 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
      MotorDateTimeGrid
      .
    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.
  3. 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
  4. Create the motor manufacture date column:
    1. In the
      Properties
      pane, 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 the
      Text
      property and
      Aliases
      {Item}
      Motor
      ManufactureDate
      .
      For more information about dynamic links, see Create dynamic links.
    4. Set the
      Title
      property value to
      Manufacture Date
      .
    5. Create a dynamic link between the
      Order by
      property and
      Aliases
      {Item}
      Motor
      ManufactureDate
      .
Fornire un feedback
Hai domande o feedback su questa documentazione? invia il tuo feedback qui.