Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My Number In Database is 14.3234


and datagridview display 14.3234666666666661


Where The Problem !!!!!!
Posted
Comments
[no name] 23-Aug-15 0:05am    
Please provide below infos:
1. What is datatype in database and value in database.
2. Is there any user defined method in gridview before data binding or any formatting(string.format()) before data binding.

1 solution

we don't have access to your code or database, so it is difficult to tell where is the issue.
insert or update value in database with 14.3234 value, don't use your programme to insert data, use sql insert or update statement. now check the value in datagridview, if it is showing wrong number in the gridview then your code changing database value in your application, debug and check your application from the point where retrive data and showing in the gridview. if code not involve with changing value then check for any control formatting applied or not for these column values.
 
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