GridView 上的滚动条
我想在 ASP.NET 中的 GridView 上放置一个滚动条。我创建了一个母版页。在此页面中,我想要一个具有静态高度和宽度的窗口,并在该窗口内放置一个 GridView。
可以在 Visual Studio 中执行此操作吗?
I want to put a scrollbar on a GridView in ASP.NET. I have created a master page. In this page I want a window with static height and width and inside this window put a GridView.
Is it possible to do this in Visual Studio?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为什么不将该网格放入 div 中并为其添加溢出。因此,一旦网格被渲染,它将被包含在带有滚动条的 div 中。
Why not put that grid in a div and add an overflow to it. So, once the grid is rendered, it will be enclosed in that div with scrollbars.
您可以尝试将 gridview 放在 div 中,然后设置高度并添加 CSS overflow< /a> 风格。
例如。
You could try putting the gridview within a div and then setting a height and adding CSS overflowstyle to it.
eg.