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. Regarding the Gridview..

Regarding the Gridview..

Scheduled Pinned Locked Moved ASP.NET
helptutorial
3 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.
  • R Offline
    R Offline
    Ron S
    wrote on last edited by
    #1

    Hello All, I am dynamically adding the columns and rows to the gridview control. It is getting populated correctly, my problem here is i am not getting the horizontal scroll bar within the gridview. How to add horizontal scrol bar to the griedview control, so that it will not affect the other controls on the page. Thanks in advance.

    Bharath.S Ron

    N 1 Reply Last reply
    0
    • R Ron S

      Hello All, I am dynamically adding the columns and rows to the gridview control. It is getting populated correctly, my problem here is i am not getting the horizontal scroll bar within the gridview. How to add horizontal scrol bar to the griedview control, so that it will not affect the other controls on the page. Thanks in advance.

      Bharath.S Ron

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      It seems Gridview won't support horizondal scrolling. You need to place gridview inside DIV element and apply styles for DIV to show scrollbar.

      <DIV style="OVERFLOW: auto; WIDTH: YourWidth; HEIGHT: YourHeight">

      If your gridview width exceeds specified width, it will show scrollbar. I Don't know cross browser compatibility of this method.:cool:


      My Website | Ask smart questions

      R 1 Reply Last reply
      0
      • N N a v a n e e t h

        It seems Gridview won't support horizondal scrolling. You need to place gridview inside DIV element and apply styles for DIV to show scrollbar.

        <DIV style="OVERFLOW: auto; WIDTH: YourWidth; HEIGHT: YourHeight">

        If your gridview width exceeds specified width, it will show scrollbar. I Don't know cross browser compatibility of this method.:cool:


        My Website | Ask smart questions

        R Offline
        R Offline
        Ron S
        wrote on last edited by
        #3

        thank you

        Bharath.S Ron

        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