Results 1 to 6 of 6

Thread: .NET 2.0 Microsoft.Reporting.Webforms.ReportViewer

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2005
    Posts
    625

    .NET 2.0 Microsoft.Reporting.Webforms.ReportViewer

    I'm using the ReportViewer to create reports in a web page. I was able to get reports to show no problem, but one thing I would like to do is sort the data
    without making another database call.

    Is there a way to sort the data once its been put into the report?

    I have a Typed Data Set linked to an SQL Datasource but don't know how to change the view, or access the DataSet (xsd) programmatically.

    (The SQLDataSource I can access no problem, but I don't know how to access the dataset)

  2. #2
    Fanatic Member
    Join Date
    Jun 2004
    Location
    All useless places
    Posts
    917

    Re: .NET 2.0 Microsoft.Reporting.Webforms.ReportViewer

    If you want to provide the user with interactive sorting then you can find the option in the column properties (can't guide you to the exact menu option as my home comp doesn't have SSRS installed). I will try to provide that by tomorrow morning.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: .NET 2.0 Microsoft.Reporting.Webforms.ReportViewer

    Why don't you sort the data when you initially get it from the database prior to putting it into the report?

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2005
    Posts
    625

    Re: .NET 2.0 Microsoft.Reporting.Webforms.ReportViewer

    We're trying to avoid sorting on the database level - its a convoluted stored procedure that creates the data, and it already runs slow.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2005
    Posts
    625

    Re: .NET 2.0 Microsoft.Reporting.Webforms.ReportViewer

    I know DataTable (within a normal DataSet object) has the 'DefaultView' method with a 'Sort' method, but I don't see how I can access the Typed Dataset that is being used by my ReportViewer control.

  6. #6
    Fanatic Member
    Join Date
    Jun 2004
    Location
    All useless places
    Posts
    917

    Re: .NET 2.0 Microsoft.Reporting.Webforms.ReportViewer

    Have you tried to set the sort value of the report from the properties tab? If you're putting the layout in a table then right click on table, select properties and you'll find a Sorting tab. There in the Expression column you can set a specific column on which it is to be sorted or you can write an entire expression.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width