How to: Set the Data Type of a DataColumn
.NET Framework 2.0
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
-
Open a dataset in the Dataset Designer.
-
Select the column you want to set the data type for.
-
In the Properties window, select the desired data type from the DataType list.