DataSet (DataColumn) datatype WRONG!

  • Thread starter Trygve Lorentzen
  • Start date
T

Trygve Lorentzen

Hi,

I have a typed dataset with a column GROSSWEIGHT defined as an INT in my
MySQL database. My strongly typed autogenerated DataSet defines the
GROSSWEIGHT column as datatype "long".

<xs:element name="GROSSWEIGHT" type="xs:long" minOccurs="0"
/>

When I check the type of the nameOfDataRow.GROSSWEIGHT object it is Int64,
which is correct, but when I use nameOfDataRow["GROSSWEIGHT"] to get the
value of the DataColumn object, it's type is is show as Int16. What the heck
is wrong here?

Please give me any hits to solve this thing since I need to use the
nameOfDataRow["GROSSWEIGHT"] approach in a general method instead of using
the strongly typed nameOfDataRow.GROSSWEIGHT approach.

Cheers,
Trygve
 
T

Trygve Lorentzen

Sorry, my mistake, figured it out now, nothing was wrong, just in my head :)
.... Getting to tired here.
 

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

Top