How to display SSRS report results in a datagrid in a windows application

I have a WPF windows application, and I have created a page that opens a SSRS report when the user clicks on a link. WHen the user clicks on a link, the SSRS url is passed into the page, and the page opens with the report, and then the user selects the parameters, clicks View Report, and then sees the report results. How would I go about displaying these results in a datagrid?
jjliu4492Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
mr_nadgerConnect With a Mentor Commented:
What you're being asked to do is display a rendered webpage into a datagrid, which it's not designed to do.
You will also lose the ability to enter any parameters.

The user may have requested you do this, but it really isn't a good idea; you either need decline their request, or modify your RDLs to look like a datagrid.
0
 
Easwaran ParamasivamCommented:
As reportviewer control is there why do you want to display result in datagrid?

http://www.johnstagich.com/Blog/post/Adding-a-Local-SSRS-Report-to-WPF-Application.aspx
0
 
mr_nadgerCommented:
are you intending to use the contents of the grid for something, or do you just want to diplay the report?
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
jjliu4492Author Commented:
The end user wants to display the report results in a datagrid, we are not using the contents of the grid for anything.
0
 
mr_nadgerCommented:
I don't understand why they're wanting to display a report in a data grid; as EaswaranP said, reports shoudl be displayed in the reportviewer tool, datagrids are a different animal altogether.
If it has to be a datagrid, performance would be better if you ignored the report and queried the data directly into the grid, rather than rendering the report.
0
 
jjliu4492Author Commented:
We have already created all the report rdl's, and the user's request is to display the report results in a datagrid format.
0
 
jjliu4492Author Commented:
How would I modify my rdl to look like a datagrid?
0
 
mr_nadgerCommented:
just format the table in the report to match the layout of a gridview on your form
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.