开发者

Asp.net - How to introduce scrolling in gridview control

开发者 https://www.devze.com 2022-12-08 01:58 出处:网络
I am using Vb.net for coding. I have a grid view control in which i want to introduce a vertical scroll bar if the value from the sql query overfl开发者_高级运维ows. How do I go about it?You could pla

I am using Vb.net for coding. I have a grid view control in which i want to introduce a vertical scroll bar if the value from the sql query overfl开发者_高级运维ows. How do I go about it?


You could place the gridview in a div with the following style:

overflow: auto; height: 80px;.


The following markup should do this. You'll need to change the height as required.

    <div style="overflow-y:auto; height:200px">
        <asp:GridView ID="GridView1" runat="server" > 
        </asp:GridView>
    </div>
0

精彩评论

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