Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Current Page in GridView

Current Page in GridView

Scheduled Pinned Locked Moved ASP.NET
question
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mazdak
    wrote on last edited by
    #1

    Dear Friends: In numeric style of page number in GridView , how can I set the font-color or back-color of current page number?

    Mazy
    "One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji

    E 1 Reply Last reply
    0
    • M Mazdak

      Dear Friends: In numeric style of page number in GridView , how can I set the font-color or back-color of current page number?

      Mazy
      "One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji

      E Offline
      E Offline
      ednrgc
      wrote on last edited by
      #2

      Have you checked the PagerStyle and PagerSettings properties?

      M 1 Reply Last reply
      0
      • E ednrgc

        Have you checked the PagerStyle and PagerSettings properties?

        M Offline
        M Offline
        Mazdak
        wrote on last edited by
        #3

        Yes, they apply on all of the fonts in footer , and do not specify current page number.

        E 1 Reply Last reply
        0
        • M Mazdak

          Yes, they apply on all of the fonts in footer , and do not specify current page number.

          E Offline
          E Offline
          ednrgc
          wrote on last edited by
          #4

          As a workaround, Try to use the following to access that label: The Current Page is called CurrentPageLabel. Assign it a class in the aspx, or try this: GridViewRow pagerRow = CustomersGridView.BottomPagerRow; Label pageLabel = (Label)pagerRow.Cells[0].FindControl("CurrentPageLabel"); Once you have the label, you can assign it a css class.

          M 1 Reply Last reply
          0
          • E ednrgc

            As a workaround, Try to use the following to access that label: The Current Page is called CurrentPageLabel. Assign it a class in the aspx, or try this: GridViewRow pagerRow = CustomersGridView.BottomPagerRow; Label pageLabel = (Label)pagerRow.Cells[0].FindControl("CurrentPageLabel"); Once you have the label, you can assign it a css class.

            M Offline
            M Offline
            Mazdak
            wrote on last edited by
            #5

            Thanks , I'll check it. :)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups