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
  1. In Project view, right-click a node and select New > Data controls > Data grid.

    For example, right-click MainWindow (type).

  2. Double-click the Data grid object to open it in the editor.
  3. In Project view, select a Database object.
  4. 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.

  5. (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.