Click here to Skip to main content
14,207,410 members
Rate this:
Please Sign up or sign in to vote.
See more:

I have a gridview with scroll bars.But thats not working.
here is my code,

Can you tell me whats wrong in my code?

<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<asp:Panel id="panelContainer" runat="server" Width="1000px" Height="500px" ScrollBars="Both"><asp:GridView style="MARGIN-TOP: 0px; MARGIN-LEFT: 5px; PADDING-TOP: 0px" id="grdPrice" runat="server" Width="881px" Height="420px" ForeColor="#333333" Font-Size="10px" Font-Names="Verdana" OnSelectedIndexChanged="grdPrice_SelectedIndexChanged" RowStyle-VerticalAlign="Bottom" OnPageIndexChanging="grdPrice_PageIndexChanging" GridLines="Both" CellPadding="4" AllowPaging="True">
<rowstyle verticalalign="Bottom" backcolor="LightGoldenrodYellow" height="15px">

<footerstyle backcolor="#EDA505" font-bold="True" forecolor="White" height="15px">

<pagerstyle horizontalalign="Center" wrap="False" backcolor="#EDA505" forecolor="White" height="20px">

<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333"></SelectedRowStyle>

<HeaderStyle BackColor="#EDA505" Font-Bold="True" Font-Size="Small" ForeColor="White" Height="25px" Width="850px"></HeaderStyle>

<editrowstyle backcolor="#2461BF">

<alternatingrowstyle backcolor="White">

Sandeep Mewara 26-Apr-12 10:18am
"I have a gridview with scroll bars" - what do you mean by this?

Scrollbar would depend on your page design.
Thendral.N 26-Apr-12 10:28am
gridview with horizontal and vertical scroll bar
Thendral.N 26-Apr-12 10:29am
vertical scroll bar is working fine but horizontal scroll bar is not working
Ali Al Omairi(Abu AlHassan) 26-Apr-12 10:36am
please send me the the markups of your page and the javascript you are using.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190612.1 | Last Updated 26 Apr 2012
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100