Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7539967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:31:16+00:00 2026-05-30T07:31:16+00:00

I have a program that shows data in a datagridview. The data in the

  • 0

I have a program that shows data in a datagridview. The data in the datagridview comes from a table in a dataset. The data looks good on the screen so I decided to add a way to print the data.

I created a new form, added a reportviewer control, and designed the report. I used my dataset as the datasource for the report.

I then added a button to my original form so that when it was pressed, it would show the form with the reportviewer control.

My problem is, when I hit the print button, it takes me to my reportviewer control form, but it shows my report with only the headings, no data. It’s like my dataset has no data in it! But, when I step through with debug, it shows over 1000 rows in my dataset.

So, my question is, what have I forgotten to do? The data is there, it shows up on one form (with the datagridview) but it doesn’t show up on the reportviewer control (only the headings).

There was really no coding involved. I just made a new form, added the reportviewer control, designed the report and told it to use my dataset as the datasource. Typically, this works for me. I can’t imagine why it’s not working.

Thanks for any help or advice!

Here’s the code that I use to show the report:

private void btnPrint_Click(object sender, EventArgs e)
    {
        Form showReport = new frmPrintView();
        showReport.Show();
    }

Here are images of my two screen. The data is obviously in my dataset, otherwise there would be none on the first screen. The second screen, though, seems to show my dataset as being empty since nothing appears but the headings.

enter image description here

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T07:31:17+00:00Added an answer on May 30, 2026 at 7:31 am

    I think you are missing the dataBind method:

    From the Exam 70-516: TS: Accessing Data with Microsoft .NET Framework 4:

    ASP.NET controls require you to execute the DataBind method on the control to indicate
    that the data is ready to be rendered. If you don’t execute the DataBind method, the control won’t render. When executing the DataBind method on a control, the control is obliged to call the DataBind method on its child controls. This means that you can execute the DataBind method on the Web form, and it will call the DataBind method on all its controls
    

    add it to the form load event on your form report

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this problem: I have a datagridview that reads the data from a
I have a Java program that is mostly GUI and it shows data that
I have a program that shows a lot of data, and I am wondering
I have a program that uses the mt19937 random number generator from boost::random. I
I have a program that runs osql.exe from microsoft sql server tools directory and
I have some surface data that is generated by an external program as XYZ
I have written a little program that deletes a record from the database using
I have two database tables. One table stores data for a commitment that a
I have a Delphi 6 program that receives audio from an external program via
I have a set of data that shows users, collections of fruit they like,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.