2007-11-13 12:20:49 UTC
2) Add four rows of data (two columns each):
The values should be as followed (please make sure you’re passing values with the types specified to array).
First Column
Value | Type
“Red” | String
“Blue”| String
DBNull | System.DBNull
“Pink” | String
Second Column
Value | Type
5 | Integer
6 | Integer
7 | Integer
DBNull | System.DBNull
I can do all of this, except the DBNull assignments. Later, I must test for those DBNull values using IsDBNull() function or the System.DBNull.Value equality. So, how do I make an assignment using DBNull as a value, when it is a data type?