Creating A Data Grid By Hand
This lesson will show you how to create a data grid through script.
Copy Data Grid From revDataGridLibrary
The data grid template is stored in the revDataGridLibrary stack and can be copied using some code similar to this:
copy group "DataGrid" of group "Templates" of stack "revDataGridLibrary" to card "MyCard" of stack "MyStack"
put it into theDataGridRef
Set The "style" Property
set the dgProp["style"] of theDataGridRef to "table" or "form"
Assign a Row Template
set the dgProp["row template"] of theDataGridRef to the long id of group "MyRowTemplate" of stack "MyStack"
You should probably create this ahead of time using the IDE. For example, you could create a data grid and then delete it while leaving the row template behind (it will exist on a card in "Data Grid Templates xxx" stack).