Configure the Data Grid widget
- Last UpdatedApr 06, 2026
- 1 minute read
Preparing the Data Grid widget to run in an InTouch HMI runtime includes several configuration workflows.
-
Assign values to Data Grid widget properties
-
Prepare source data to be shown in the Data Grid widget.
Due to platform-specific behaviour in InTouch, the DataGrid widget uses two configuration workflows. Select the workflow based on whether the data changes at runtime or remains fixed.
Dynamic Data (Recommended)
This workflow is recommended when the DataGrid widget should display data that changes at runtime. Load the data by using QuickScript .NET after the application starts.
To enable this workflow, do not configure the DataSource property at design time. When you save the graphic, a warning appears because DataSource is empty. Save the graphic despite this warning.
At runtime, data is loaded using a script, for example:
Dim filecontent As String
filecontent = System.IO.File.ReadAllText("C:\training\equipment.json")
DataGrid1.DataSource = filecontent
Leaving the DataSource property unconfigured prevents the grid from reverting to design‑time data when a row is selected in InTouch.
Fixed Data (Design‑Time Loading)
This workflow is designed for datasets that do not change at runtime. In this case, the DataSource property is completely configured during design time.
When using this method, do not update the DataGrid widget with new data through scripts at runtime. Doing so can cause the grid to revert to the original design-time data whenever a row is selected.
While large datasets are supported, saving very large DataSource values may take several minutes. During this process, the editor might display "Not Responding" message which is expected, and the save process continues in the background.