问题datagridview数字 [英] problem datagridview numbers

查看:67
本文介绍了问题datagridview数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据库中的数字是14.3234





和datagridview显示14.3234666666666661





问题!!!!!!

My Number In Database is 14.3234


and datagridview display 14.3234666666666661


Where The Problem !!!!!!

推荐答案

我们无权访问您的代码或数据库,所以很难说出问题出在哪里。

在数据库中插入或更新值为14.3234,不要使用你的程序插入数据,使用sql insert或update语句。现在检查datagridview中的值,如果它在gridview中显示错误的数字,那么你的代码在你的应用程序中改变数据库值,调试并检查你的应用程序从retrit数据和gridview中显示的点。如果代码不涉及更改值,则检查是否对这些列值应用了任何控件格式。
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.


这篇关于问题datagridview数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆