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. Freeze Gridview Header [modified]

Freeze Gridview Header [modified]

Scheduled Pinned Locked Moved ASP.NET
5 Posts 3 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.
  • A Offline
    A Offline
    Abhijit Jana
    wrote on last edited by
    #1

    i am using following code for freezing Header of Gridview

    S V 2 Replies Last reply
    0
    • A Abhijit Jana

      i am using following code for freezing Header of Gridview

      S Offline
      S Offline
      Sherin Iranimose
      wrote on last edited by
      #2

      I'm not clear about what you are asking, While scrolling the div scroll bar and browser scroll bar, The grid view header should be fixed. Is this the requirement?

      EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE. How to post a question

      A 1 Reply Last reply
      0
      • S Sherin Iranimose

        I'm not clear about what you are asking, While scrolling the div scroll bar and browser scroll bar, The grid view header should be fixed. Is this the requirement?

        EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE. How to post a question

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Sherin Iranimose wrote:

        While scrolling the div scroll bar and browser scroll bar, The grid view header should be fixed. Is this the requirement?

        yes. That's i want. but now , when i scroll div Grid header is fixed, but if i scroll Browser scroll bar first then div , Header postion is remain same , means i am getting header in between grid. please help !!!

        cheers, Abhijit

        S 1 Reply Last reply
        0
        • A Abhijit Jana

          Sherin Iranimose wrote:

          While scrolling the div scroll bar and browser scroll bar, The grid view header should be fixed. Is this the requirement?

          yes. That's i want. but now , when i scroll div Grid header is fixed, but if i scroll Browser scroll bar first then div , Header postion is remain same , means i am getting header in between grid. please help !!!

          cheers, Abhijit

          S Offline
          S Offline
          Sherin Iranimose
          wrote on last edited by
          #4

          Try this css class .gridContainer {overflow:auto;} .gridContainer table th {position:relative;} .gridContainer table tbody {overflow-x:hidden;} put your grid inside the following div <div class="gridContainer" style="height:500px; width:600px; overflow:auto;"> </div>

          EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.

          1 Reply Last reply
          0
          • A Abhijit Jana

            i am using following code for freezing Header of Gridview

            V Offline
            V Offline
            V 2
            wrote on last edited by
            #5

            Try this Click Here Hope it will help u

            Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...

            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