Add a Data Source to a Form

To display content on a page in the user interface, a data source must be added to a form in the form designer window of Visual Studio. You can select and drag a table or query from your project in the Solution Explorer window or drag a system table from the Application Explorer window. You can choose to use one table or many tables, depending on the number of fields that you will use for your form.​

Alternatively, you can add a data source to your form by using the Data Sources node in the form designer.​

Follow these steps to add a data source from your project:​

  1. Ensure that your form is open in the form designer window in Visual Studio.​
  2. In the left pane of the designer, right-click the Data Sources node and select New Data Source.
  3. Select DataSource1 under the Data Sources node and go to the Properties window.​
  4. Select your table in the Table property drop-down menu. You can also select any table from the AOT node in this menu.​