Problem removing the sqlDataAdapter from report

4 posts, 0 answers
  1. Andy Green
    Andy Green avatar
    120 posts
    Member since:
    Jul 2009

    Posted 22 Oct 2009 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 22 Oct 2009 Link to this post

    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.
  3. DevCraft banner
  4. Andy Green
    Andy Green avatar
    120 posts
    Member since:
    Jul 2009

    Posted 22 Oct 2009 Link to this post

    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
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 22 Oct 2009 Link to this post

    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.
Back to Top