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. How to fix a broken scrollbar in datagrid

How to fix a broken scrollbar in datagrid

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
8 Posts 5 Posters 1 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.
  • S Offline
    S Offline
    smcirish
    wrote on last edited by
    #1

    <div style="height: 300px; overflow: auto;">    <asp:DataGrid ....>             ....    </asp:DataGrid> </div> The above used to work until I migrated to VS2008.   Now the scrollbar is broken(it moves but the data won't) Has something changed?

    smcirish Texas

    C N G S 4 Replies Last reply
    0
    • S smcirish

      <div style="height: 300px; overflow: auto;">    <asp:DataGrid ....>             ....    </asp:DataGrid> </div> The above used to work until I migrated to VS2008.   Now the scrollbar is broken(it moves but the data won't) Has something changed?

      smcirish Texas

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Your best bet is to look at the generated HTML, figure out what changed, and work out if you can change it back.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      S 1 Reply Last reply
      0
      • S smcirish

        <div style="height: 300px; overflow: auto;">    <asp:DataGrid ....>             ....    </asp:DataGrid> </div> The above used to work until I migrated to VS2008.   Now the scrollbar is broken(it moves but the data won't) Has something changed?

        smcirish Texas

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        Visual Studio didn't break your HTML. Have you tried other browsers? Are you using IE8? Have you tried it in compatibility mode?


        only two letters away from being an asset

        S 1 Reply Last reply
        0
        • N Not Active

          Visual Studio didn't break your HTML. Have you tried other browsers? Are you using IE8? Have you tried it in compatibility mode?


          only two letters away from being an asset

          S Offline
          S Offline
          smcirish
          wrote on last edited by
          #4

          I am using IE 7. -smc

          smcirish Texas

          1 Reply Last reply
          0
          • C Christian Graus

            Your best bet is to look at the generated HTML, figure out what changed, and work out if you can change it back.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            S Offline
            S Offline
            smcirish
            wrote on last edited by
            #5

            I am looking at the generated HTML.   The same HTML is producing different results. -smc

            smcirish Texas

            C 1 Reply Last reply
            0
            • S smcirish

              I am looking at the generated HTML.   The same HTML is producing different results. -smc

              smcirish Texas

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              Well, that's just plain impossible.

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              1 Reply Last reply
              0
              • S smcirish

                <div style="height: 300px; overflow: auto;">    <asp:DataGrid ....>             ....    </asp:DataGrid> </div> The above used to work until I migrated to VS2008.   Now the scrollbar is broken(it moves but the data won't) Has something changed?

                smcirish Texas

                G Offline
                G Offline
                Gary Stafford
                wrote on last edited by
                #7

                I tested your div tag, shortened to 100 px to force a vertical scroll bar, with a DataGrid loaded with data in VS2008. It worked just fine in IE8 and Mozilla 5. There has to be more to the story (code), to 'break' it, as the earlier commenter said.

                <div style="height: 100px; overflow: auto;">
                <asp:DataGrid runat="server" DataSourceID="LinqDataSource1"></asp:DataGrid>
                </div>

                Regards, Gary

                modified on Monday, July 13, 2009 9:31 PM

                1 Reply Last reply
                0
                • S smcirish

                  <div style="height: 300px; overflow: auto;">    <asp:DataGrid ....>             ....    </asp:DataGrid> </div> The above used to work until I migrated to VS2008.   Now the scrollbar is broken(it moves but the data won't) Has something changed?

                  smcirish Texas

                  S Offline
                  S Offline
                  ScottM1
                  wrote on last edited by
                  #8

                  Have you added anything else to the page, try the page with just the div and datagrid. If that works try adding the other controls one at a time, it could be one of the controls above the div not terminated.

                  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