如何设置网格视图的样式 [英] how to set the scrooling of grid view

查看:60
本文介绍了如何设置网格视图的样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置网格视图的样式?

how to set the scrooling of grid view?

推荐答案

您可以将gridview放在div中,如下所示:
you can put your gridview inside div as:
<div style="overflow:scroll; height: 50px; width: 50px">
  <asp:GridView ID="myGrid" runat="server />
</div>



或在pnel中显示为:



or in a pnel as:

<asp:Panel ID="scrollableGridArea" runat="server" style="overflow:scroll; height: 50px; width: 50px">
  <asp:GridView ID="myGrid" runat="server />
</asp:Panel>


如此简单,将您的gridview放置在任何容器内,例如panel,div ..
固定容器控件的高度
就这样...
Its so simple place your gridview inside any container like panel,div..
fix the height of container control
that''s it...


这篇关于如何设置网格视图的样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆