How Do I Refresh a Data Grid After Making Changes to a Template Through Script?
The command ResetList redraws a data grid after having copied in fresh copies of any templates. Here is an example of how you might use it.
## Get reference to group that serves as row template for data grid
put the dgProps["row template"] of group "DataGrid" into theRowTemplate
## For tables get reference to custom template for column
put the long id of group "My Column" of theRowTemplate into theColTemplate
## Make any updates to template
set the text of button 1 of theColTemplate to "New Option1" & cr & "New Option 2"
## Refresh the data grid
dispatch "ResetList" to group "DataGrid"