Create a data grid
Create a data grid that shows motor properties, including: speed, acceleration, and torque.
- Create the data grid:
- In theProject viewpane, right-clickMainWindow (type)and select .
- Hover-over the data grid, select , and enterMotorDataGrid.
- In thePropertiespane, create a dynamic link between theModelproperty and .For more information about dynamic links, see Create dynamic links.
- Configure the motor name column:
- In thePropertiespane, double-clickDataGridColumn1and enterMotorNameCol
- UnderDataItemTemplate, create a dynamic link between theTextproperty andMANCIA: You can select the@BrowseNameattribute by selecting it from theAttributedrop-down menu at the bottom.For more information about dynamic links, see Create dynamic links.
- Crete a dynamic link between theOrder byproperty andMANCIA: You can select the@BrowseNameattribute by selecting it from theAttributedrop-down menu at the bottom.For more information about dynamic links, see Create dynamic links.
- Set theTitleproperty value toMotor Name
- Create the motor speed column:
- In thePropertiespane, next toColumns, select and selectText column.
- Double-click the column name and enterMotorSpeedCol
- UnderDataItemTemplate, create a dynamic link between theTextproperty and .For more information about dynamic links, see Create dynamic links.
- Set theTitleproperty value toSpeed
- Create the motor acceleration column:
- In thePropertiespane, next toColumns, select and selectText column.
- Double-click the column name and enterMotorAccelerationCol
- UnderDataItemTemplate, create a dynamic link between theTextproperty and .For more information about dynamic links, see Create dynamic links.
- Set theTitleproperty value toAcceleration
- Create the motor torque column:
- In thePropertiespane, next toColumns, select and selectText column.
- Double-click the column name and enterMotorTorqueCol
- UnderDataItemTemplate, create a dynamic link between theTextproperty and .For more information about dynamic links, see Create dynamic links.
- Set theTitleproperty value toTorque
Fornire un feedback