jQuery way to freeze first two columns of a GridView control.

rpkhare
rpkhare used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
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.

Author

Commented:
These are pure jQuery Grids. Is there any trick to work with GridView control itself?
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
I don't want to use jqGrid. I am using ASP.NET GridView control and want to add frozen columns to it.

Author

Commented:
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.
The link I have provided earlier in my post contains asp.net GridView. (not jquery grid)

http://gridviewscroll.aspcity.idv.tw/Demo.aspx

Have you tried that...

Author

Commented:
Thanks it worked. I made a mistake while copying code.

Author

Commented:
@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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial