Click here to Skip to main content
15,902,275 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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?
Posted
Comments
Kschuler 22-Aug-11 9:38am    
How exactly are these objects being setup? Are you doing it all in design mode? Could you post more information?

1 solution

You should try removing the line of code that "Fill()" local dataset, from code behind.

for example: ( I want to remove ClientDetails )
VB
'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)
 
Share this answer
 
Comments
Alan Tuscano 30-Aug-11 22:21pm    
i do it in the design mode sir.. i created the dataset using wizard sir..

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