PC Review


Reply
Thread Tools Rate Thread

A couple of questions on typed Datasets

 
 
Ernie Josefik
Guest
Posts: n/a
 
      13th Oct 2003
1. I am using a typed dataset which is being filled from
an Oracle database. If any of the columns contain a null
value I get an error when accessing the column
e.g. msgbox(MyDataset.BUILDINGS.Item(0).BUIL_STATUS)
throws an exception - Cannot get value because it is DBNull

Is there a simple way to manage null values without having
to trap for nulls everytime a column is referenced in the
dataset ?

Question 2 relates to dataset properties. When viewing a
datasets properties the window contains a hyperlink to
another Dataset Properties window in the bottom lefthand
side. This second window shows detailed for each table
and column but they are read-only. Is there a way to
programatically access and set these properties?

Cheers

Ernie


 
Reply With Quote
 
 
 
 
Rajesh Patel
Guest
Posts: n/a
 
      13th Oct 2003
yes, you can change through it's schema. where you see dataset properties
link at the bottom in the property window. there is another link for view
schema. you can go there and change those read-only properties. if it is
disable, you can go through solution explorer and look for .xsd files for
the respective dataset.

Rajesh Patel

"Ernie Josefik" <(E-Mail Removed)> wrote in message
news:11a901c39198$bfa5da80$(E-Mail Removed)...
> 1. I am using a typed dataset which is being filled from
> an Oracle database. If any of the columns contain a null
> value I get an error when accessing the column
> e.g. msgbox(MyDataset.BUILDINGS.Item(0).BUIL_STATUS)
> throws an exception - Cannot get value because it is DBNull
>
> Is there a simple way to manage null values without having
> to trap for nulls everytime a column is referenced in the
> dataset ?
>
> Question 2 relates to dataset properties. When viewing a
> datasets properties the window contains a hyperlink to
> another Dataset Properties window in the bottom lefthand
> side. This second window shows detailed for each table
> and column but they are read-only. Is there a way to
> programatically access and set these properties?
>
> Cheers
>
> Ernie
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is meant by typed/untyped/strongly typed datasets? Rachana Microsoft VB .NET 4 14th Nov 2007 07:11 PM
How many typed datasets should I have? Artificer Microsoft ASP .NET 1 11th Oct 2006 05:00 PM
Convering typed and un-typed datasets to each other A.M-SG Microsoft ADO .NET 6 6th Oct 2005 08:28 PM
Typed DataSets returned as regular datasets =?Utf-8?B?Sm9uIEtpbmc=?= Microsoft ADO .NET 2 29th Aug 2004 01:41 AM
Converting Untyped Datasets into Strongly Typed Datasets with Foreign Key Constraints. Alex Berryhill Microsoft ADO .NET 2 19th Mar 2004 02:20 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:21 PM.