DATASET SET NULL to GUID Field

  • Thread starter Thread starter Guest
  • Start date Start date
In .NET 2.0, you should be able to pass null (since the type of the
field should be Nullable<Guid>). In .NET 1.1 and before, you can set the
value of the field to DBNull.Value.

Hope this helps.
 
row.TestGuid = System.DBNull.Value

Message:Implicit conversion of the type ' System.DBNull ' to ' System.Guid '
not possible



Nicholas Paldino said:
In .NET 2.0, you should be able to pass null (since the type of the
field should be Nullable<Guid>). In .NET 1.1 and before, you can set the
value of the field to DBNull.Value.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

mPiccoli said:
how I can a Guid field on Null setting (DATASET)
 
Back
Top