tags:

views:

19

answers:

1

In ADO.NET, how do specify that a column in a DataTable is required?

+2  A: 

I think the following would do the trick. Just fill in the correct table and column name.

DataSet1.Tables("Table1").Columns("Column1").AllowDBNull = False
DaMartyr