Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling Null Value In DataSet
Message
From
28/10/2009 22:22:26
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01432130
Message ID:
01432148
Views:
41
Use strongly typed datasets.

Methods for testing and setting fields to null are automatically generated; eg. IsRoleKeyNull() / SetRoleKeyNull()

>I'm doing this:
>
>
>_RoleKey = (int)dsDataSet.Tables[0].Rows[0]["RoleKey"];
>
>
>It's throwing an exception because RoleKey is null in the data. How do I handle this?
Previous
Reply
Map
View

Click here to load this message in the networking platform