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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

NULL values in dataset 10
Assigning a null value in a dataset 4
null Guid 7
Test for empty Dataset field 3
Check Guid 1
How to set a field value = null in dataGrid? 1
Compare Datasets 2
Updating Dataset 1

Back
Top