Solved

ASP Report Viewer Changing Grouping during runtime

Posted on 2011-03-01
5
527 Views
Last Modified: 2012-05-11
Using VS2008/c#/odp.net

1. Created a typed dataset as follows
    select last_name,first_name,location,dept,title from employee
2. Using Report Wizard created a group by Location Like
        Location
                    Last Name, First Name , Location, Dept, title

3. Assigned the rdlc to a report viewer control and it works fine.

My requirement to provide reports grouped  either by location, department or title.

I do not want to maintain 3 rdlc report for the above.
I wanted to use one  and change the grouping field at runtime  based on some condition like

Switch (groupby)
{
case: ‘LOCATION’
case:  ‘DEPT’
case: ‘TITLE’
default:  // By default it is grouped by location.
}

Any input is appreciated.

Suresh
0
Comment
Question by:arvee2003
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 13

Expert Comment

by:agarwalrahul
ID: 35014368
please refer link:

http://www.codeproject.com/KB/reporting-services/DataGrouping.aspx

it will help you to solve your problem
0
 

Author Comment

by:arvee2003
ID: 35014469
Thanks. I will take a look at it.

Hope it works in Local Processing Mode.

Suresh
0
 

Author Comment

by:arvee2003
ID: 35014552
I am using VS 2008 and does this work in webforms

Suresh
0
 
LVL 13

Accepted Solution

by:
agarwalrahul earned 500 total points
ID: 35014576
yes it will work on both Winforms as well as Webforms, but the syntax may be changed in webforms to pass parameters.

for your reference please go through the link:

http://www.codeguru.com/cpp/cpp/cpp_mfc/templates/article.php/c12721__2/Dynamic-Data-Grouping-Using-MS-Reporting-Services.htm
0
 

Author Closing Comment

by:arvee2003
ID: 35033501
THanks. I did work out for me
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

707 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