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
精彩评论