ASP.Net中的可滚动DataGrid [英] Scrollable DataGrid in ASP.Net

查看:53
本文介绍了ASP.Net中的可滚动DataGrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



尝试将滚动条添加到数据网格但无济于事。我已经尝试了Div标签和Panel。以下是一些变体:

Hello,

Attempting to add a scrollbar to a datagrid but to no avail. I have tried both the Div tag and Panel. Here are some of the variations:

<div style="vertical-align:top; height: 52px; overflow:auto; width:300px;">

<div style="height: 52px; overflow:scroll; width:300px;">

<asp:Panel runat="server" style="overflow:scroll; width:85%; height:300px;"> 

<asp:Panel ScrollBars="Auto" runat="server" Wrap="true">

<asp:Panel runat="server" style="overflow:scroll; width:300px; height:50px; vertical-align:;"> 

<asp:DataGrid id="grdCharges" 

                style="z-index:101; left:40px; top:384px; font-family:'Arial'; font-size:9pt; position:absolute;" 

                runat="server" Width="654" Height="97px" AutoGenerateColumns="False" 

                BorderStyle="NotSet" CssClass="GridAppearanceStyle" HeaderStyle-CssClass="GridHeaderStyle" ItemStyle-CssClass="GridItemStyle">
    <ItemStyle CssClass="GridItemStyle" />
    <Columns>
        <asp:BoundColumn DataField="Account_No" HeaderText="Account_No">
        </asp:BoundColumn>
        ......
        <asp:ButtonColumn CommandName="Select" HeaderText="row_selector" Text="Select">
        </asp:ButtonColumn>
    </Columns>
    <HeaderStyle BackColor="Control" />
</asp:DataGrid>
</div>
<!--</Panel>-->







滚动条确实出现但不在网格旁边。它显示在网页中的其他控件之上。





任何帮助都表示赞赏。




The scrollbar does appear but not adjacent to the grid. It show on top of other controls in the web page.


Any help is appreciated.

推荐答案

这篇关于ASP.Net中的可滚动DataGrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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