0

Hi,
In my aspx page I have a gridview inside a panel as below

<asp:Panel runat="server" ID="pnlContainer" ScrollBars="Auto" Height="781px" Width="1250px">
        <asp:GridView ID="gvCashFlowDtls" AutoGenerateColumns="False" runat="server" Font-Size="Small"
            DataKeyNames="UID" Width="98%" 
            onrowdatabound="gvCashFlowDtls_RowDataBound">
            <HeaderStyle CssClass="GVFixedHeader" />
            <Columns>

.
.
.
.
.
.
.
.
.
  </Columns>            
        </asp:GridView>
    </asp:Panel>

This is the style I used to freeze the grid view header.
<style type="text/css">
        .GVFixedHeader
        {
            font-weight: bold;
            background-color: #BFBFBF;
            cursor: default;
            position: relative;
            top: BLOCKED EXPRESSION;
            z-index: 10;
        }
</style>

The header is freezed as I expected. In the gridview I have a label in one of the template columns.I have specified a cssclass for the label,the class has no definition in my style.The class is just for getting the array of the labels in jquery.I retrieve the array of the lable like this
var allocbud = $(".allocbud"); in my jquery.Based on some calculations I set the value of the label in a jquery function.It is working fine. The problem occurs when I scroll down the gridview with freezed header and then try to change the value of the label.The Freezed header disappers!!! Then if I scroll back to the normal position and then change the value, the header reappears!!

Please help me to fix this issue.

Edited by mike_2000_17: Fixed formatting

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by bipiney
0

The top expression was not complete in the previous post
<style type="text/css">
.GVFixedHeader
{
font-weight: bold;
background-color: #BFBFBF;
cursor: default;
position: relative;
top: expression(parentNode.parentNode.parentNode.parentNode.parentNode.scrollTop-2);
z-index: 10;
}
</style>

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.