Click here to Skip to main content
15,904,024 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all

iam trying to generate reports according to the fields selected by the user at runtime .
my need is the user will select the needed fields for the report and generating report for their use.thus unwanted details are not seen.the rdbms i am using is sql server 2008 and front end visual studio 2010.
Can any one help me

thanks in advance
Posted
Updated 28-Mar-12 23:37pm
v2

1 solution

You need to construct the parameters for the select query or stored procedure at runtime.

Depending whether you are using a inline query or stored procedure, here is one solution

http://stackoverflow.com/questions/8125600/t-sql-dynamic-query-by-selected-column-in-asp-net-gridview[^]
 
Share this answer
 

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