Using the ReportViewer control in 2.0

Source: Internet
Author: User


A common requirement for any data-driven application is the report. However, the 1.x does not provide us with this very important feature. Fortunately, however, the ReportViewer control that comes with. NET 2.0 can meet some of the basic requirements of your report. I'll show you how to use this control in this article. The ReportViewer control can be used in a Web program or in a Windows program. Here, I'll just explain how to use it in a Web program.

Example of a report

Let's say we want to generate a list of customer information as shown below:

The above report is a very simple list of customer information grouped by country. The data for the report is obtained from the Customers table in the Northwind database. By default, it displays all customer information. However, you can also have it display customer information that belongs to a particular country you specify.

The report is designed using the ReportViewer control, which can fetch data from a strongly typed dataset or from a custom collection of objects. In the actual program development, we tend to use a 3-tier architecture, data acquisition is often obtained from the business level dataset or a generic collection. Here, I intend to use a generic collection as a data source instead of a strongly typed DataSet.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.