Groups | Blog | Home
all groups > dotnet ado.net > october 2004 >

dotnet ado.net : Problems putting decimal values in a datagrid



Joachim Carrein via .NET 247
10/31/2004 3:53:26 AM
Hi, i make a connection to Navision via C/ODBC in ASP.NET
First of all it didn't work with datasets, i had to use odbcCommands and a datareader
this works fine as long as the valuetypes are string or code(special navision type)
I have 1 field(Amount) that is type decimal, then i get the error when binding the reader to the datagrid:"The inputstring is not valid".

Does anyone now how i can make the grid show the decimal values?

--------------------------------
From: Joachim Carrein

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

Grzegorz Danowski
10/31/2004 2:23:43 PM
Uzytkownik "Joachim Carrein via .NET 247" <anonymous@dotnet247.com> napisal
w wiadomosci news:eG0d8A0vEHA.1404@TK2MSFTNGP11.phx.gbl...
[quoted text, click to view]

I don't know Navision but I suppose you can cast field of type Amount to
another type, for example to Double.

I hope it helps.
Grzegorz
AddThis Social Bookmark Button