About
Pricing
Community
Teams
Start Free Trial
Log in
rpkhare
asked on
1/1/2013
jQuery way to freeze first two columns of a GridView control.
Is there a jQuery way to freeze the first two columns of a GridView control or an HTML table?
I tried with CSS but the solutions are not compatible with all versions of IE. I therefore want a javascript way to do this.
ASP.NET
jQuery
JavaScript
10
1
Last Comment
rpkhare
8/22/2022 - Mon
Mrunal
1/1/2013
Hi
Look at these examples with jQuery:
http://gridviewscroll.aspcity.idv.tw/Demo.aspx
http://www.trirand.com/blog/jqgrid/jqgrid.html
mcnute
1/2/2013
In the second
link
mroonal provided there is a link on the left sidebar menu called "Frozen Cols.GroupHeader(new)" which provides all info you nee.
rpkhare
1/2/2013
ASKER
These are pure jQuery Grids. Is there any trick to work with GridView control itself?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Manoj Patil
1/2/2013
See these links
http://stackoverflow.com/questions/8481996/freezing-columns-in-jqgrid
http://forum.jquery.com/topic/freeze-columns-or-rows-in-grid
rpkhare
1/3/2013
ASKER
I don't want to use jqGrid. I am using ASP.NET GridView control and want to add frozen columns to it.
Manoj Patil
1/4/2013
Is this work for you ?
http://forums.asp.net/t/1120278.aspx
http://stackoverflow.com/questions/13529532/freeze-asp-net-grid-view-column
http://www.codeproject.com/Questions/462959/Freeze-Asp-net-GridView-HaderRow-Some-Columns
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
rpkhare
1/9/2013
ASKER
I already tried the first two solutions. The problem is it doesn't works well in IE 9.0. I want a solution that is compatible with all versions of IE.
I am checking the links suggested in the third link you provided. But it seems the links are similar to the first two.
ASKER CERTIFIED SOLUTION
Mrunal
1/11/2013
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
rpkhare
1/11/2013
ASKER
Thanks it worked. I made a mistake while copying code.
rpkhare
1/14/2013
ASKER
@mroonal:
I tried on a production code. It works fine when IE 9.0 is running in compatibility mode but when changed to IE 9, it is not rendering properly.
Any work around.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Look at these examples with jQuery:
http://gridviewscroll.aspcity.idv.tw/Demo.aspx
http://www.trirand.com/blog/jqgrid/jqgrid.html