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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:12:40+00:00 2026-05-26T14:12:40+00:00

I have more than 30,000 rows in a table. It takes a lot of

  • 0

I have more than 30,000 rows in a table. It takes a lot of time to load all the data in the gridview. So I want to display 100 rows at a time. When I click next page button, another 100 rows should be displayed. When I click previous page button, previous 100 rows should be displayed. If I type page 5 in a text box, then I want to jump over to the 5th lot of rows.

I also want to display how many pages there will be. Can we implement this concept in vb.net [winform] gridview. I am using database PostgreSQL.

Can anybody give me a hint or some concept?

  • 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-26T14:12:40+00:00Added an answer on May 26, 2026 at 2:12 pm

    Look at OFFSET and LIMIT in PostgreSQL.
    Your query for the 5th page could look like this:

    SELECT * 
    FROM   tbl
    ORDER  BY id
    OFFSET 400
    LIMIT  100;
    

    id is the primary key in my example, therefore an index is in place automatically.
    If you access the table a lot in this fashion, performance may profit from using CLUSTER.

    Total number of pages:

    SELECT ceil(1235::real / 100)::int
    FROM   tbl;
    

    If you wanted the number rounded down, just simplify to:

    SELECT 1235  / 100
    FROM   tbl;
    

    With both numbers being integer the result will be an integer type and fractional digits truncated automatically. But I think you need to round up here.

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

Sidebar

Related Questions

I have a table with more than 10 000 000 rows. In TOAD this
I have more than 50,000 rows of data in Excel that look like this:
I have a table with more than 300,000 rows (Total table size is 600mb+).
I have table with more than 3 000 000 rows. I have try to
I have an SQL table called tbl_einheit. phpmyadmin shows more than 14.000 rows in
I have a big table with more than 10,000 rows and it will grow
I'm importing more than 600.000.000 rows from an old database/table that has no primary
I have a huge table with more than one hundred million of rows and
I have more than 400 000 id's in NOT IN statement. Whether it will
I have a huge java codebase (more than 10,000 java classes) that makes extensive

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.