How to fix a broken scrollbar in datagrid
-
<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
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.
-
<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
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
-
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
-
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.
-
I am looking at the generated HTML. The same HTML is producing different results. -smc
smcirish Texas
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.
-
<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
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
-
<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