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 8571607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:49:07+00:00 2026-06-11T18:49:07+00:00

In my current reportviewer i have a dataset that returns rows of information from

  • 0

In my current reportviewer i have a dataset that returns rows of information from stored procedure. I wanted to add a parameter in my report to display in the header area of the report the count of rows in the report. If there is no information to return to the reportviewer obviously the rows count will be 0. Is there a way in which i could try to count how many rows there are in the dataset/table and return that number in the header area in a textbox without linking it to any dataset?

  • 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-06-11T18:49:08+00:00Added an answer on June 11, 2026 at 6:49 pm

    You can take the count of rows in one form(say Form1)…save it in one integer variable…

    eg. public static int cnt=ds.Tables[0].Rows.Count;

    pass this integer value to dataset as a parameter (Form1.cnt)…

    Remember in this case declaration of variable as public static is important…

    After this you can insert the value into that table and take it on the report text box…

    OR

    You can simple count Fields in dataset by giving direct formula to that text box

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

Sidebar

Related Questions

Current, I've got a stored procedure that has a main goal of doing a
In report design, I have 2 tables (Current and Proposed) the structure like this:
I have report data is that structured as followed: RecID | ReportView1 | Name
Current Situation: Direct Binding I have an NSTableView which displays the data that comes
We have a 2005 report that can be 2 to around 250 pages with
I need to localize labels / column header for a ReportViewer report. From what
Current Process: I have a tar.gz file. (Actually, I have about 2000 of them,
Current situation: Ubuntu 8.04 server edition (live server) Postgresql 8.3.7 (from standard repositories) Postgis
Current state: I have a tray icon, two context menus - one for about/options/exit/etc.
Current demo here: http://www.studioimbrue.com/sites/eliotdudik I have the tabs system working wonderfully. I'm trying to

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.