Ok, the row is returning an Object when you call row["MPT11"], and the 
ToString method for Objects doesn't take any arguments.  You have to 
convert the output to an appropriate data type (int, decimal, double, 
whatever), and then use the ToString method on that.

NumberFormatInfo nfi = new CultureInfo("en-US", false).NumberFormat;
String MPT11 = "";
...
MPT11 = (row["MPT11"].ToString() == "-777") ? "null" : 
Convert.ToDouble(row["MPT11"]).ToString("N", nfi);
...
rowList.Add(... , MPT11, ...);

That should solve the formatting problem and the null problem together in 
one.

On Wednesday, March 6, 2013 6:44:56 AM UTC-5, Matevz Uros Pavlic wrote:
>
> Well, with the help of asp.net forums, i manage to solve part of this. 
>  But i guess when Javascript changes the input from 'string' as C# to 
> number, it changes the dots (.) to commas (,).
>
> Any ideas?
>
> thanks, m
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to