Create a data grid that shows motor properties, including: speed, acceleration, and torque.
-
Create the data grid:
-
In Project view, right-click MainWindow (type) and select .
-
Hover-over the data grid, select
, and enter MotorDataGrid.
-
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
-
Create the motor torque column:
-
In Properties, next to Columns, select
and select Text column.
-
Double-click the column name and enter MotorTorqueCol
-
Under DataItemTemplate, create a dynamic link between the Text property and .
-
Set the Title property value to Torque