How to: Edit TableAdapters
You edit a TableAdapter when you want to change the schema of the adapter's table and the Fill method that fills the TableAdapter's associated data table. TableAdapters are created with a main Fill method that defines the schema of the associated data table. The main Fill method is based on the query or stored procedure you entered when you originally configured the TableAdapter; it is the first (topmost) method below the data table on the.
Any changes made to the TableAdapter's main Fill method are reflected in the schema of the associated data table. For example, removing a column from the query in the main Fill method also removes the column from the associated data table. Additionally, removing the column from the main Fill method removes the column from any additional queries for that TableAdapter.
You edit TableAdapters with thein the Dataset Designer.
If the TableAdapter Query Configuration Wizard opens instead of the TableAdapter Configuration Wizard, you might have selected one of the TableAdapter's additional queries and not the original TableAdapter or main Fill query. For information on editing the additional queries of a TableAdapter, see.
To edit a TableAdapter
Open the dataset in the Dataset Designer. For more information, see.
Select the TableAdapter you want to edit.
Right-click the TableAdapter name and choose Configure.
The TableAdapter Configuration Wizard opens, ready for you to modify the query or stored procedure that fills the TableAdapter's associated data table.
Complete the TableAdapter Configuration Wizard with the changes you want.