Create a data grid that shows motor properties, including motor name, speed, and acceleration.
-
Create the motor parameters label:
-
In Project view, right-click MainWindow (type), and select .
-
Hover-over the label, select
, and enter NumericDataLabel.
-
In Properties, set Text to Motor parameters.
-
Create the numeric data grid:
-
In Project view, right-click MainWindow (type) and select .
-
Hover-over the data grid, select
, and enter MotorNumericGrid.
-
In Properties, create a dynamic link between Model and .
-
Configure the motor name column:
-
In Properties, double-click DataGridColumn1 and enter MotorNameCol
-
Under DataItemTemplate, create a dynamic link between the Text property and
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.
-
Crete a dynamic link between the Order by property and
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.
-
Set Title to Motor Name
-
Create the motor speed column:
-
In Properties, next to Columns, select
and select Text column.
-
Double-click the column name and enter MotorSpeedCol
-
Under DataItemTemplate, create a dynamic link between Text and .
-
Set Title to Speed
-
Create the motor acceleration column:
-
In Properties, next to Columns, select
and select Text column.
-
Double-click the column name and enter MotorAccelerationCol
-
Under DataItemTemplate, create a dynamic link between Text and .
-
Set Title to Acceleration