我们可以在asp.net的gridview上面添加滚动吗? [英] can we add scroll above the gridview in asp.net

查看:72
本文介绍了我们可以在asp.net的gridview上面添加滚动吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Gridviewscroll演示。我想在网格上方创建一个滚动条。



如果有人有想法请分享。



谢谢。

using Gridviewscroll demo. I want to create a scroll above the grid also.

If anyone have idea please share .

Thanks.

推荐答案

HI,没有直接的属性或方法可以这样做,但你可以尝试自定义如下面的链接,有一些例子,希望这些将是有用..



http://forums.asp.net/t/1851667.aspx?Horizo​​ntal+scroll+on+top+as+well+as+bottom [ ^ ] />


http: //stackoverflow.com/questions/3934271/horizo​​ntal-scrollbar-on-top-and-bottom-of-table [ ^ ]
there is no direct property or method to do so but you can try to customise like in below links which have some examples ,hope these will be helpful..

http://forums.asp.net/t/1851667.aspx?Horizontal+scroll+on+top+as+well+as+bottom[^]

http://stackoverflow.com/questions/3934271/horizontal-scrollbar-on-top-and-bottom-of-table[^]


HTML页面



HTML Page

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="up" runat="server">
    <ContentTemplate>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false">
            <Columns>
                <asp:BoundField DataField="ContactName" HeaderText="Contact Name" />
                <asp:BoundField DataField="City" HeaderText="City" />
                <asp:BoundField DataField="Country" HeaderText="Country" />
                </Columns>
            </asp:GridView>
                <asp:Button ID="Button1" runat="server" Text="Refresh" />
    </ContentTemplate>
</asp:UpdatePanel>







在Gridview上滚动添加Jquery插件




Add Jquery Plugin For Scrolling On Gridview

<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="Scripts/ScrollableGridViewPlugin_ASP.NetAJAXmin.js" type="text/javascript"></script>
<script type="text/javascript">


(document).ready(function(){
(document).ready(function () {


这篇关于我们可以在asp.net的gridview上面添加滚动吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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