Avatar of rpkhare
rpkhare
Flag for India asked on

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.NETjQueryJavaScript

Avatar of undefined
Last Comment
rpkhare

8/22/2022 - Mon
Mrunal

mcnute

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

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

rpkhare

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

⚡ 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

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

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

ASKER
Thanks it worked. I made a mistake while copying code.
rpkhare

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