Click here to Skip to main content
15,894,740 members
Please Sign up or sign in to vote.
1.11/5 (2 votes)
See more:
Hi Team,

I am trying to Freeze the Grid view header but its not happening.Please find my coding.

<script type="text/javascript">
$(document).ready(function () {
gridviewScroll();
});

function gridviewScroll() {
$('#<%=grdPrimarySales.ClientID%>').gridviewScroll({
width: 1000,
height: 400,
freezesize: 0,
arrowsize: 30,

headerrowcount: 1
});
}
</script>


<asp:HiddenField ID="hfScrollPosition" runat="server" Value="0" />


borderwidth="3px">
<asp:GridView ID="GridViewProduct" runat="server" AutoGenerateColumns="false" UseAccessibleHeader="False"
CssClass="grid-view" AutoGenerateSelectButton="true"
OnSelectedIndexChanged="GridViewProduct_SelectedIndexChanged" OnRowCreated="GridViewProduct_RowCreated">
<rowstyle cssclass="normal">
<HeaderStyle CssClass="header" />
<alternatingrowstyle cssclass="alternate">
<columns> // Bound Fields
<emptydatarowstyle backcolor="#99FFCC" font-bold="True" horizontalalign="Center">
VerticalAlign="Middle" />
<SelectedRowStyle BackColor="Green" />





Please Provide me your answers.
Posted

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900