Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to show data (which is a query result) in a report viewer(vb.net) when the column names are dynamic? Means we don’t know all column names while designing report viewer.

What I have tried:

I have full code to get data in my Datagrid view in a form and report the viewer in another Form.
Posted
Updated 27-Jun-19 2:42am
v2
Comments
[no name] 28-Jun-19 12:20pm    
So you want somebody else to code all this up for you? And your contribution is what?
Sree1981 3-Jul-19 6:24am    
Please don't think that way. I have serched net and could not find a solution. I have posted this after trying for so many days. I need a link or tutorial which is beneficial. Moreover, I need to know whether it's possible.
Sinisa Hajnal 2-Jul-19 6:58am    
How is it possible that you have unknowable reports? If it is something user can select, you can have a report with all the fields and simply control the visibility depending on user choices. But report is usualy just a template to show in fancy way what would otherwise be plain data grid. But that requires purpose, you show data certain way to communicate information, not just to dump data, you can do that in CSV file too :)
Sree1981 3-Jul-19 6:47am    
@Sinisa
I have a table that I got from unpivoting SQL data. So I don't know how many columns are going to come.

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