471,354 Members | 1,181 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

DATASET SET NULL to GUID Field

how I can a Guid field on Null setting (DATASET)
Dec 14 '05 #1
2 6856
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]
- mv*@spam.guard.caspershouse.com

"mPiccoli" <mP******@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
how I can a Guid field on Null setting (DATASET)

Dec 14 '05 #2

row.TestGuid = System.DBNull.Value

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

"Nicholas Paldino [.NET/C# MVP]" wrote:
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]
- mv*@spam.guard.caspershouse.com

"mPiccoli" <mP******@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
how I can a Guid field on Null setting (DATASET)


Dec 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by James Fisher | last post: by
4 posts views Thread by Shahar | last post: by
8 posts views Thread by drg | last post: by
4 posts views Thread by Steve Richter | last post: by
9 posts views Thread by GotDotNet? | last post: by
7 posts views Thread by David | last post: by
7 posts views Thread by Peter K | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.