Display database table data
You can display the data stored in a database table by dragging the database table into the Data grid object.
Prerequisites
To display database table data
-
In Project view, right-click a node and select .
For example, right-click MainWindow (type).
- Double-click the Data grid object to open it in the editor.
- In Project view, select a Database object.
-
From Properties, drag a database table into the Data grid object in the editor.
The Data grid object shows the data stored in the database table.
-
(optional) To display the data updated in real time at runtime, invoke the Update method of the Data grid object.
Tip: You can associate the Update method with the MouseClick event of a Button object.