Get a SQL Reporting Services report to only show selected rows in a datagrid.

Posted on 2006-03-20
Last Modified: 2012-06-27
Hello all,

In an page (I'm using VB.Net) can you have a user select rows in a datagrid, using say a check box and then trigger a reporting services report to only report on the selected items. Reporting all items is not an issue I can just use the same SP that populated the datagrid in the first place.

If I could find the reference to include in my project that allows me to work with Reporting Services items, that might set me on my way?

I want to avoid having to create some long winded dynamically created query string if possible. Not only because of the security risk but it could end up being to long.

Any lateral thoughts and suggestion much appreciated.
Question by:Martin_Currie1
    LVL 12

    Accepted Solution

    see if you can adapt this tutorial on the detailsview control to your problem
    LVL 12

    Expert Comment

    it goes through the basics of capturing the primary key value of the selected row of a gridview to display details in a detailsview control. you should be able to parlay this into reporting on the selected row in your own fashion.

    Author Comment

    I'll have to have a look tomorrow. It's got to late to do it now. I'm also looking into this

    Which may be what you mention anyway, sorry I haven't had chance to read it.

    Thanks for the rapid feedback. I hope to have it cracked tomorrow.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now