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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:59:19+00:00 2026-05-13T12:59:19+00:00

i ma using am listview and datapager control. in my list view i have

  • 0

i ma using am listview and datapager control. in my list view i have specfied to show 30 records once exceed thirty records then paging comes where rest of the resords are shown.

issue: when i have only 5 records even then my paging is shown(previous 1 next) even though the link button are disable of paging . i do not want to shown paging untill i exceed thirty records.

i need to shown the paging only when there is more than specfied recoreeds to be shown in an page
i do not want pging option to be shown even if i have 1 or 30 records

any help would be great

thank you

  • 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-13T12:59:19+00:00Added an answer on May 13, 2026 at 12:59 pm

    You can hide a NextPreviousPagerField object in a DataPager control by setting the Visible property to false. You can also hide the individual buttons (the first-page, previous-page, next-page, and last-page buttons) by setting the ShowFirstPageButton, ShowPreviousPageButton, ShowNextPageButton, and ShowLastPageButton properties to false.

    MSDN
    Good luck trying it out ;).
    It will probably be something like

        if(results < 30) { DataPager1.Visible = false; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an asp:ListView control which list playlists. It has paging supported and holds
Can I have some tutorial/sample code of using datapager in a asp.net listview control?
I'm using a datapager control on my listview to perform paging in it. When
I'm using the ListView control (ASP.NET 2008) to show a bunch of lines of
I am using the ListView Control with the following datasource List<MyObject> On my listview
Currently I have a ListView (using the Details View). I would like to implement
I'm using the new ASP.Net ListView control to list database items that will be
I have a page with a listview control and a datapager control. The listviews
Im using ListView to to show some custom data, once data is updated in
i want to display some information in a listview using the GridView. i have

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.