A
Arun
Hi
Please help me in this confusing issue
I have placed a gridview inside a panel.see below
<aspanel ID="PnlChildMeasures" runat="server"
HorizontalAlign="Center" meta:resourcekey="PnlChildMeasuresResource1"
ScrollBars="Auto" Width="99%"
Height="300px" Visible="false">
<asp:GridView ID="grdChildMeasures"
runat="server"
AutoGenerateColumns="False"
CssClass="GridView"
EmptyDataText="--No Data--"
meta:resourcekey="grdChildMeasuresResource1" Width="97%"
SelectedRowStyle-CssClass="SelRow"
AlternatingRowStyle-CssClass="GridItemAlt"
RowStyle-CssClass="GridItem"
DataKeyNames="CHILD_ID,TEMP_MEASURE_ID,DATE_MEASUREMENT"
<asp:BoundField
DataField="CHILD_NUMBER_PARTNER" HeaderText="Child Number"
meta:resourcekey="BoundFieldResource1">
<HeaderStyle Width="20%"
CssClass="GridViewHeader" />
</asp:BoundField>
</Columns>
</asp:GridView>
</aspanel>
Also CSS for gridview Headerstyle is
..GridViewHeader
{
height: 20px;
border-style: none;
color: #FFFFFF;
font-weight: bold;
background-color: #DB7044;
background-repeat: repeat-y;
background-position: right;
background-attachment: fixed;
position: relative;
top: expression(this.offsetParent.scrollTop-1.0);
text-align: left;
padding-left: 2px;
}
top: expression is given bt its not working
Header is fixing inside the panel but when i scroll the page its not
fixing, during page scroll the header is not fixing and its moving
away from gridview header and misplaced some where else.
Please give a solution to it. I have searched a lot for a solution but
not getting a correct way to fix the issue.
Its very urgent for my application.
Please help me in this confusing issue
I have placed a gridview inside a panel.see below
<aspanel ID="PnlChildMeasures" runat="server"
HorizontalAlign="Center" meta:resourcekey="PnlChildMeasuresResource1"
ScrollBars="Auto" Width="99%"
Height="300px" Visible="false">
<asp:GridView ID="grdChildMeasures"
runat="server"
AutoGenerateColumns="False"
CssClass="GridView"
EmptyDataText="--No Data--"
meta:resourcekey="grdChildMeasuresResource1" Width="97%"
SelectedRowStyle-CssClass="SelRow"
AlternatingRowStyle-CssClass="GridItemAlt"
RowStyle-CssClass="GridItem"
DataKeyNames="CHILD_ID,TEMP_MEASURE_ID,DATE_MEASUREMENT"
<Columns>><%--SkinID="grdChildMeasures"--%>
<asp:BoundField
DataField="CHILD_NUMBER_PARTNER" HeaderText="Child Number"
meta:resourcekey="BoundFieldResource1">
<HeaderStyle Width="20%"
CssClass="GridViewHeader" />
</asp:BoundField>
</Columns>
</asp:GridView>
</aspanel>
Also CSS for gridview Headerstyle is
..GridViewHeader
{
height: 20px;
border-style: none;
color: #FFFFFF;
font-weight: bold;
background-color: #DB7044;
background-repeat: repeat-y;
background-position: right;
background-attachment: fixed;
position: relative;
top: expression(this.offsetParent.scrollTop-1.0);
text-align: left;
padding-left: 2px;
}
top: expression is given bt its not working
Header is fixing inside the panel but when i scroll the page its not
fixing, during page scroll the header is not fixing and its moving
away from gridview header and misplaced some where else.
Please give a solution to it. I have searched a lot for a solution but
not getting a correct way to fix the issue.
Its very urgent for my application.