Click here to Skip to main content
15,889,315 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,
i have a gridview i want fix header after binding
i upload pic of my gridview after binding
plz help me

http://www.mediafire.com/view/scfzt8c5z0crabe/Grid.JPG[^]

http://www.mediafire.com/view/nmo3vm99ucdyo58/Grid2.JPG[^]
Posted

1 solution

 
Share this answer
 
Comments
Member 11573837 17-Apr-15 10:23am    
hi Arkadeep De,
thank you for answer me but when i try code o have this erro which is display in pic
plz help me


http://www.mediafire.com/view/tf52bx9699dbz5l/error.JPG[^]

this is the error message in english
(The Controls collection can not be modified because the control contains code blocks (ie ie <% ...% > ) .)
Member 11573837 17-Apr-15 10:58am    
hi Arkadeep De,
when i use in new webform it's fine but when i used in my form i have the error message in my form i use control of AjaxToolKIt is this can make any problem !!!!
Arkadeep De 18-Apr-15 6:50am    
share your grid view code..I don't think so its a huge one..
Member 11573837 18-Apr-15 10:26am    
hi Arkadeep De,
i'm happy to see your answer
this is my code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test_Fixed_Head.aspx.cs" Inherits="web_Qtel_Test.Test_Fixed_Head" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<script src="Template/Scripts/jquery-1.4.1.min.js"></script>
<script src="Template/Scripts/ScrollableGridPlugin.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#<%=GridView1.ClientID %>').Scrollable({
ScrollHeight: 500
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server">
<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1">
<asp:GridView ID="GridView1" runat="server">
</div>
</form>
</body>
</html>

for the tow file of js you can downlod it from the link you have been give it to me in Solution
Member 11573837 18-Apr-15 10:31am    
or you can check this link i have uplode files you need

https://www.mediafire.com/folder/8g8bqza2swiee/GridView

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