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

  • Home
  • SEARCH
  • 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 6387541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:09:51+00:00 2026-05-25T03:09:51+00:00

I have a GridView which is bound to a datasource, which occasionally has a

  • 0

I have a GridView which is bound to a datasource, which occasionally has a few thousand rows. I’ve obviously paged the results to avoid having such a huge grid.

I need to get the total of a certain decimal column however – currently I do a seperate query which is quite taxing considering the size of the datasource. Is there a way I can go through all the rows in the datasource, and get the total? I used to do this by calculating OnRowDataBound but this is now not an option due to the paging.

  • 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-25T03:09:52+00:00Added an answer on May 25, 2026 at 3:09 am

    Ah, no, not without loadin them all which again makes it slow.

    Normally the UI should not shwo a count but “more than x rows”.

    Example:

    • Load 501 rows
    • cut off one row
    • Say the result ahs more than 500 rows

    Finished.

    This is how most such interfaces work, including all of active directory maangement.

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

Sidebar

Related Questions

In my website, I have a gridview which has datasource dynamically bound from database
I have a GridView which is not bound to any DataSource. In my page
I have a Gridview in which i have two templatefields of dropdownlist. I bound
I have a GridView control on an ASP page, which I've bound to a
I have a DataTable which is bound to a GridView. I also have a
I have a GridView which is databound to an XML Datasource. For one of
Have a gridview control which will show X amount of rows. I want to
I have a gridview which is bound to a DataTable. When I try to
I have a bound field in my Gridview which is getting its value from
I have a gridview which should allow rows to be in edit mode. this

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.