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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:35:37+00:00 2026-06-04T18:35:37+00:00

1 My gridview code is like: <asp:GridView runat=server ID=gvOpenProblems AutoGenerateColumns=true BorderColor=Black OnRowCreated=gvOpenProblems_RowCreated OnRowDataBound=gvOpenProblems_RowDataBound HeaderStyle-HorizontalAlign=Center

  • 0

1My gridview code is like:

<asp:GridView runat="server"
    ID="gvOpenProblems"
    AutoGenerateColumns="true"
    BorderColor="Black"
    OnRowCreated="gvOpenProblems_RowCreated"
    OnRowDataBound="gvOpenProblems_RowDataBound"
    HeaderStyle-HorizontalAlign="Center"
    Width="2000px"
    AllowPaging="true"
    PageSize="20"
    OnPageIndexChanging="gvOpenProblems_PageIndexChanging">

    <RowStyle HorizontalAlign="Left" />
    <PagerStyle CssClass="gridpager"
        HorizontalAlign="Left"
        Width="200px" />

And CSS is like:

.gridpager, .gridpager td {
    text-align: left;
    color: Green;
    font-weight: bold;
    text-decoration: none;
    border: 0;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    padding: 0px;
}

.gridpager a {
    color: Red;
    font-weight: normal;
}

This works fine normally but when the number of pages is more than 10, and when I click on 10th page or 11th page all page numbers spread and go out of grid.

Check image

Is this a normal issue or is it an issue with the CSS?

  • 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-04T18:35:38+00:00Added an answer on June 4, 2026 at 6:35 pm

    The problem is that you’re setting the width to 200px. You’d be forgiven for thinking that this applies to the containing table that the paging controls are held in, but it’s not, it’s the TD that the a & span tags are contained in.

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

Sidebar

Related Questions

I have a GridView control setup like this: <asp:GridView ID=UserList AllowPaging=True PageSize=20 runat=server> ...
Given a GridView control defined like this: <asp:GridView ID=AttachedFilesGridView runat=server AllowSorting=true AllowPaging=false CellPadding=5 AutoGenerateColumns=false
I have a HyperLinkField defined as follows: <asp:GridView ID=gvNotifications runat=Server AutoGenerateColumns=false EnableViewState=true CssClass=tableWhole AlternatingRowStyle-CssClass=tableAlt>
i am binding the values to gridview like this <asp:GridView ID=grdViewAttachment_Client runat=server Width=615px AutoGenerateColumns=False
I have a GridView set up: <asp:GridView id=GridView1 Runat=server AutoGenerateColumns=False OnRowCommand = GridView1_RowCommand EnableViewState=true>
If I have the following (generic) ASP code: <asp:ObjectDataSource runat=server ID=myODS>...</asp:ObjectDataSource> <asp:GridView runat=server ID=myGV
Hy, I have a gridView control in Asp.NET like this: <asp:GridView ID=outputGridView runat=server onrowediting=OutputGridView_RowEditing>
<asp:GridView ID=CommentGrid GridLines=None runat=server AutoGenerateColumns=False> <Columns> <asp:BoundField HeaderText=No. DataField=Num > <HeaderStyle HorizontalAlign=Left /> </asp:BoundField>
<asp:GridView runat=server ID=gridUserAccounts SkinID=gridviewSkin PageSize=5> <Columns> <asp:BoundField HeaderText=User Name DataField=UserName /> <asp:BoundField HeaderText=Email SortExpression=Email
I have Gridview like this. Here is my last column Gridview code; <EditItemTemplate> <asp:TextBox

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.