Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Data columns can be assigned default values. The default value is assigned in the column as new rows (records) are created.
To assign a default value to a data column
Open a dataset in the Dataset Designer.
Select the column you want to assign a default value to.
In the Properties window, set the DefaultValue property to the desired default value.
See Also
Tasks
Walkthrough: Displaying Data on a Windows Form
How to: Connect to Data in a Database
How to: Change the Caption of a DataColumn
How to: Set the Data Type of a DataColumn
How to: Add Columns to a DataTable
How to: Create an Autonumber DataColumn