如何看滚动条.... [英] how to see the scroll bar....
本文介绍了如何看滚动条....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经使用asp:面板滚动条到gridview ..
我的网格视图滚动但看不到滚动条,而不是它被视为白色?
..我该怎么做?
< asp:panel ID =Panel1runat =serverScrollBars =Vertical> ;
< asp:gridview>
hai i have used asp:panel for scroll bar to a gridview..
my grid view is scrolled but the scroll bar is not seen,instead of that it is viewed as white color?
..what shal i do?
<asp:panel ID ="Panel1" runat=" server" ScrollBars="Vertical">
<asp:gridview>
推荐答案
你可以将它放在这样的div中:
You can put it inside a div like this:
<div style="width: 100%; height: 400px; overflow: scroll">your GridView</div>
或者
Or else
<asp:Panel ID="pnlGridView" runat="server" ScrollBars="Auto" Width="100%" Height="350px">
<asp:GridView ID="gridView1" runat="server">
your GridView items
</asp:GridView>
</asp:Panel>
试试这个,
Hi,
Try this,
<asp:Panel runat="server" HeaderText="Search Result" ScrollBars="Vertical">
<asp:GridView ID="grview1" runat="server" AutoGenerateColumns="false"
Width="100%" AllowPaging="true" AllowSorting="true" OnSorting="grview1_Sorting" OnPageIndexChanging="grview1_PageIndexChanging"
GridHeight="180" PageSize="9" AllowPageResize="true" OnPageSizeChanging="grview1_PageSizeChanging">
</asp:GridView>
</asp:Panel>
这篇关于如何看滚动条....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文