J
John
Hi,
I'm writing a database programme with C# using a dataset. I want to set a DateTime for a particular
field of a row to null (nulls are allowed for that column). When I use:
newRow.Date_Pub=null;
I get a compile error: "Cannot convert null to 'System.DateTime' because it is a value type".
How do I set the field to null?
I'm writing a database programme with C# using a dataset. I want to set a DateTime for a particular
field of a row to null (nulls are allowed for that column). When I use:
newRow.Date_Pub=null;
I get a compile error: "Cannot convert null to 'System.DateTime' because it is a value type".
How do I set the field to null?