This is a migrated thread and some comments may be shown as answers.

Problem removing the sqlDataAdapter from report

3 Answers 27 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 1
Andy Green asked on 22 Oct 2009, 08:25 AM
Hi

My reports have an sqlConection, sqlDataAdapter & sqlSelectCommand, and the report datasource is set to use the sqlDataAdapter.

I now want to go back and try passing the query param throiugh the properties, I've set the report datasource to none, but when I try to remove any of the data controls I get the error message - Object reference not set to an instance of an object.

How do I remove the data objectsa from my reports.

Andy

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 22 Oct 2009, 11:28 AM
Hello Andy,

Select the SqlDataAdapter in the report designer (see screenshot) and delete it using Del.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Andy Green
Top achievements
Rank 1
answered on 22 Oct 2009, 11:56 AM
Thanks

Thats exactly what I'm doing but when I hit delete either right click delete ot the del get I I get the error message - Object reference not set to an instance of an object.

ANdy
0
Steve
Telerik team
answered on 22 Oct 2009, 12:02 PM
Hello Andy,

Make sure the sqlDataAdapter is not used anywhere in your code or if it has left over references in the InitializeComponent() method - make sure you delete those.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Andy Green
Top achievements
Rank 1
Answers by
Steve
Telerik team
Andy Green
Top achievements
Rank 1
Share this question
or