Home All Groups Group Topic Archive Search About

Decimals truncated in dataset

Author
31 Mar 2005 5:23 PM
robot7
I'm airly new to .net and I can't seem to figure out this problem, I hope you
can help...

I'm filling a dataset from an Access database with columns of type =
Decimal. When I load a datagrid with the dataset, the numbers are truncated,
i.e. in Access I see 0.87224505043, in my datagrid i see 0.

Why is this happening?

Author
1 Apr 2005 2:00 AM
Val Mazur (MVP)
Hi,

Are you sure that value in a DataSet is 0 or is it just a grid control
displays 0. try to put value from the DataSet into some variable to see what
it holds

--
Val Mazur
Microsoft MVP

http://xport.mvps.org



Show quote
"robot7" <rob***@discussions.microsoft.com> wrote in message
news:2A937EBA-C6B6-46AC-B750-12BDFC942EFD@microsoft.com...
> I'm airly new to .net and I can't seem to figure out this problem, I hope
> you
> can help...
>
> I'm filling a dataset from an Access database with columns of type =
> Decimal. When I load a datagrid with the dataset, the numbers are
> truncated,
> i.e. in Access I see 0.87224505043, in my datagrid i see 0.
>
> Why is this happening?

AddThis Social Bookmark Button