Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 25, 2012 01:53 PM by hans_v
Member
4 Points
24 Posts
Apr 25, 2012 01:26 PM|LINK
Hi,
I am trying to create custom Gridview control with the option to Freeze the column header. I created the Custom control with the basic logic as provided in the below link
http://imar.spaanjaars.com/357/a-scrollable-table-with-a-fixed-header
The problem is the alignment between the header table created and the datarow table.
<Table > with Header rows </Table>
<div overflow:auto>
<Table> with Data Rows </Table> </Div>
I tried searching and found another way as below by javascript
http://www.codeproject.com/Articles/13126/An-ASP-NET-DataGrid-Custom-Control-to-Freeze-Heade
but this have problem when we run in IE9.
Can any one suggest how to solve the alignment .
Star
11225 Points
1815 Posts
Apr 25, 2012 01:30 PM|LINK
either use CSS
http://csharpdotnetfreak.blogspot.com/2009/07/scrollable-gridview-fixed-headers-asp.html
or JQuery
http://csharpdotnetfreak.blogspot.com/2011/11/jquery-fixed-header-scrollable-gridview.html
All-Star
35986 Points
6550 Posts
Apr 25, 2012 01:53 PM|LINK
http://ideasparks.codeplex.com/
Mrityunjay08
Member
4 Points
24 Posts
Custom Gridview Control with Freezeable header
Apr 25, 2012 01:26 PM|LINK
Hi,
I am trying to create custom Gridview control with the option to Freeze the column header. I created the Custom control with the basic logic as provided in the below link
http://imar.spaanjaars.com/357/a-scrollable-table-with-a-fixed-header
The problem is the alignment between the header table created and the datarow table.
<Table > with Header rows </Table>
<div overflow:auto>
<Table> with Data Rows </Table> </Div>
I tried searching and found another way as below by javascript
http://www.codeproject.com/Articles/13126/An-ASP-NET-DataGrid-Custom-Control-to-Freeze-Heade
but this have problem when we run in IE9.
Can any one suggest how to solve the alignment .
amit.jain
Star
11225 Points
1815 Posts
Re: Custom Gridview Control with Freezeable header
Apr 25, 2012 01:30 PM|LINK
either use CSS
http://csharpdotnetfreak.blogspot.com/2009/07/scrollable-gridview-fixed-headers-asp.html
or JQuery
http://csharpdotnetfreak.blogspot.com/2011/11/jquery-fixed-header-scrollable-gridview.html
amiT jaiN
ASP.NET C# VB Articles And Code Examples
hans_v
All-Star
35986 Points
6550 Posts
Re: Custom Gridview Control with Freezeable header
Apr 25, 2012 01:53 PM|LINK
http://ideasparks.codeplex.com/