Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

How to: Set the Default Value of a DataColumn 

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

  1. Open a dataset in the Dataset Designer.

  2. Select the column you want to assign a default value to.

  3. In the Properties window, set the DefaultValue property to the desired default value.

See Also

Community Additions

ADD
Show:
© 2015 Microsoft