The individual columns (DataColumn) that make up data tables (DataTable) are created by adding them to the data tables DataColumnCollection. You can add columns to data tables visually with the Dataset Designer, or with one of the data wizards. To add data columns to data tables programmatically, see Adding Columns to a DataTable (ADO.NET).
Note: |
|---|
The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose
Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.
|
To add a column to a DataTable with the Dataset Designer
To add a column to a DataTable with the Data Source Configuration Wizard
In the Data Sources window, right-click the data source, and then click Configure DataSet with Wizard.
Expand the table you want to add a column to.
Select the columns to add to the table.
Click Finish.
To add a column to a DataTable with the TableAdapter Configuration Wizard
Tasks
Concepts
Other Resources