滚动条问题对我有帮助 [英] Scrollbar problem help me

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

问题描述

大家好,



请帮我查看滚动条。

在我的情况下,滚动功能正在运行,但滚动条是看作白色空白条,而不是滚动条。所以,请帮帮我。

我已附上代码和输出屏幕。

Hello everyone,

Please help me to view the scrollbar.
In my case, scroll function is working, but scrollbar is seen as white blank bar, instead of a scroll bar. So, please help me.
I have attached the code and output screen.

<table>
        <tr>
            <td>
                <asp:Panel ID="Panel1" 

                           runat="server" 

                           ScrollBars="Vertical" 

                           Height="150" Width="500"

                           BackColor="Transparent">
<asp:GridView ID="grdSale" 

              runat="server" 

              AutoGenerateColumns="False"

              BorderColor="#E7E7FF" 

              BorderWidth="2px" 

              CellPadding="3" 

              Font-Names="Tahoma" 

              ForeColor="White"

              GridLines="Vertical" 

              Height="100" 

              Width="483px" 

              AllowPaging="True" 

              AllowSorting="True"

              OnRowCreated="grdSale_RowCreated" 

              OnRowDataBound="GVRowDB"  

              OnPageIndexChanging="grdSale_PageIndexChanging"

              PageSize="10" 

              OnSelectedIndexChanged="grdSale_SelectedIndexChanged">
              <columns>
                     <asp:BoundField DataField="Shop">
                         <itemstyle horizontalalign="Left" />
                                        
                     <asp:BoundField DataField="Area" >
                         <itemstyle horizontalalign="Left" />
                                        
                     <asp:BoundField DataField="Location">    
                         <itemstyle horizontalalign="Left" />
                                   
                     <asp:BoundField DataField="SaleDate"> 
                         <itemstyle horizontalalign="Left" />
                                    
                     <asp:BoundField DataField="Type_Disco">  
                         <itemstyle horizontalalign="Left" />
                                    
                     <asp:BoundField DataField="Detail_Disco"> 
                         <itemstyle horizontalalign="Left" />
                                    
               </columns>
               <footerstyle backcolor="#B5C7DE" forecolor="#4A3C8C" />
               <SelectedRowStyle BackColor="#738A9C" ForeColor="#F7F7F7" />
               <pagerstyle backcolor="#E7E7FF" borderstyle="Solid" font-bold="True" forecolor="#4A3C8C" horizontalalign="Center" />
               <HeaderStyle BackColor="#9BA09E" Font-Bold="True" HorizontalAlign="Center" ForeColor="White" Height="15px" />
               <pagersettings firstpagetext="" lastpagetext="" nextpagetext="" previouspagetext="" visible="False" />
               <alternatingrowstyle backcolor="#DDDDDD" />
               <rowstyle backcolor="#E8E8E8" forecolor="#4A3C8C" />
</asp:GridView>
            </td>
        </tr>
</table>

推荐答案





删除 BackColor =Transparent并尝试。


代码都正确。工作正常。可能是gridveiw的高度小于Height =150,并且当gridview的高度大于定义的高度时滚动条显示滚动。通过改变面板的高度来检查滚动条。





谢谢
Code is all correct.working fine. May be height of your gridveiw is less than Height="150" and scroll bar show scrolls when the gridview''s height is greater than the defined height. Check scroll bar by varying the height of the panel.


Thanks


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

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