Posted on: 9/13/2013 7:13:03 AM | Views : 901

Hi,
I am using C# 3.5 and ASP.NET
I have a datatable, in which I have the column created as below:
dtTable.Columns.Add(new DataColumn("TestQuantity")); dtTable.Columns["TestQuantity"].DataType = typeof(double); However, I want to show only 2 decimal places for the column.
Example: If the data is 32422344.23443 , i would like to show as 32422344.23 and also the rounding off if the number applies.
How to format the datacolumn to shown 2 decimal places.
Thanks
...

Go to the complete details ...