在报表查看器中删除/删除数据集 [英] Delete/Remove Dataset in a Report Viewer

查看:76
本文介绍了在报表查看器中删除/删除数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的报表查看器上的数据集有问题.

在创建系统开始时,我将本地数据库用于DataSet,

现在,我正在使用服务器数据库测试系统,但现在遇到了麻烦..

错误2
类型``CLI_CASH.CitadelLinesDevDataSet.or_dtl1xDataTable''的值不能转换为``CLI_CASH.CitadelLinesDataSet.or_dtl1xDataTable''.

Hi,

I''m having problem with the dataset on my report viewer.

at the start of creating my system, i used my local database for DataSet,

Now that i''m testing my system using Server Database, i''m having trouble with it..

Error 2
Value of type ''CLI_CASH.CitadelLinesDevDataSet.or_dtl1xDataTable'' cannot be converted to ''CLI_CASH.CitadelLinesDataSet.or_dtl1xDataTable''.

CLI_CASH.CitadelLinesDataSet.or_dtl1xDataTable is my local dataset




while

CLI_CASH.CitadelLinesDevDataSet.or_dtl1xDataTable

是服务器数据集.

is the Server Dataset.

How can i remove the local Dataset?

推荐答案

您应该尝试从后面的代码中删除"Fill()"本地数据集的代码行.
例如:(我要删除ClientDetails)
You should try removing the line of code that "Fill()" local dataset, from code behind.

for example: ( I want to remove ClientDetails )
'TODO: This line of code loads data into the 'InvoiceITDataSet.ClientDetails' table. You can move, or remove it, as needed.
Me.ClientDetailsTableAdapter.Fill(Me.InvoiceITDataSet.ClientDetails)

'TODO: This line of code loads data into the 'InvoiceITDataSet.DataTable1' table. You can move, or remove it, as needed.

Me.DataTable1TableAdapter.FillByID(Me.InvoiceITDataSet.DataTable1, InvoiceNumber)


这篇关于在报表查看器中删除/删除数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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