How to: Set the Data Type of a DataColumn
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. ArchiveDisclaimer

How to: Set the Data Type of a DataColumn 

Data columns (DataColumn) are created with a default data type of String. To change the data type of a column, set the DataType property in the Properties window.

To set the data type of a DataColumn

  1. Open a dataset in the Dataset Designer.

  2. Select the column you want to set the data type for.

  3. In the Properties window, select the desired data type from the DataType list.

See Also

© 2015 Microsoft