C#报告视图不显示更新的数据!! [英] C# report view dont show updated data !!

查看:79
本文介绍了C#报告视图不显示更新的数据!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好..

我正在开发一个应用程序,它有2个表单,用于将数据插入到Sql compact edition数据库中,另一个表单有报表视图,它将显示我的Sql数据库的数据。问题是当我将数据插入数据库并且只需
打开报告查看表单时它不会显示最近的插入,除非我关闭了应用程序并再次运行它。我认为这与"如何在运行时环境中更新数据集(.xsd)文件有关。

Simply i am developing an application which has 2 forms one for data insertion into Sql compact edition database and the other form has the report view which will show the data of my Sql database. The problem is when i insert data into the database and just open the report viewing form it doesnt show recent insertions unless i closed the application and ran it again. i this its something related to "how to update the data set (.xsd) file in run-time environment.

我正在使用visual studio 2010 ultimate ..

I am using visual studio 2010 ultimate..

感谢您的建议。

推荐答案

如果您使用的是交易,那么您需要提交它们。

If you are using Transactions then you need to commit them.

如果不是,您可能需要刷新报告使用的数据集,因为它可能在运行应用程序时填充,而不是在打开页面时填充。

If not you probably need to refresh the dataset used by the report as it is probably populated when the application is run and not when the page is opened.

这篇关于C#报告视图不显示更新的数据!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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