Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai to all,
I have a problem on Export data from excel to a data table. In my excel sheet i have 3 columns like 1,2,3, these columns are contains the fraction numbers like 12.30. If i retrieve data from excel to data table it shows the data correctly like 12.30 for 1 and 3 columns but it wont show the 2 nd column data in fraction number it shows the 2nd column data like 12.3. the "0" is missing on a particular column "2". any suggestions please.
Posted

1 solution

If you are displaying the data in a datagridview you can use something like this
C#
DefaultCellStyle.Format() = ".00"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900