Let's look at the following steps:
- Create a new VCL application by selecting File | New | VCL Forms Application.
- Put a DBNavigator (aligned to the top), a DBGrid (aligned to the client), a DataSource, and a PopUpMenu into the form.
- Set the DataSource property of DBGrid1 to DataSource1.
- Select the EMPLOYEE connection in the Data Explorer and then drag and drop it on the form to generate the EmployeeConnection.
- Put a TFDTable in the form and rename it to SalesTable.
- The connection property of SalesTable is automatically set to EmployeeConnection.
- Set the DataSet property of DataSource1 to SalesTable.
- To choose the Table, you have to expand the Table property combobox and select SALES:
Figure 1.25: SalesTable in the Object ...