C#中的数据绑定中的错误帮助 [英] error help in data binding in c#

查看:79
本文介绍了C#中的数据绑定中的错误帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中使用数据绑定.但是当我在db.db中输入数据时,它会完全保存.
但是当我重新加载项目时,数据不在db.plz帮助中.

i use databinding im my project.but when i enter the data in db.it save prefectly.
but when i reload the project the data is not in db.plz help

推荐答案

这里有一些可能的事情.

首先:当您说完美保存"时,您怎么知道?你怎么检查的?您是否检查过它,或者只是假设它已正确保存,因为它似乎没有出现错误,并且没有提出此内容已更改,您要保存更改?"?消息框?

其次:您是如何保存数据的?

第三:您如何确定要从与保存到的数据库相同的数据库中加载数据?加载数据时是否使用任何过滤器?

我?我打赌第一个-您没有检查,也没有保存.但是如果没有相关的代码片段,我不确定...
There are a couple of possible things here.

Firstly: when you say "it save perfectly" how do you know? How did you check? Did you check, or just assume it was saved correctly because it did not appear to error, and did not come up with a "this has been changed, do you want to save changes?" message box?

Secondly: How did you save your data?

Thirdly: How sure are you that you are loading data from the same database as you are saving to? Do you use any filters when you load the data?

Me? I''m betting on the first one - you didn''t check, and it didn''t get saved. But without relevant code fragments, I can''t be sure...


这篇关于C#中的数据绑定中的错误帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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