开发者

Scroll bar for Gridview

How to achieve scroll bar for gridview contro开发者_如何学Gol in asp.net only for rows but not for header too.

Thanks in advance.


Just change this code as your own. You will get scroll when grid view size exit the div size.

<body>
<form id="form1" runat="server">
<div style="height:200px; width:300px; overflow:auto;">
    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>
</div>
</form>
</body>


put the rows in div and add "style=overflow:auto" in the div style Above code will add scroll bars in the grid

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜