• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4731
  • Last Modified:

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.
0
rpkhare
Asked:
rpkhare
  • 5
  • 2
  • 2
  • +1
1 Solution
 
MrunalCommented:
0
 
mcnuteCommented:
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.
0
 
rpkhareAuthor Commented:
These are pure jQuery Grids. Is there any trick to work with GridView control itself?
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
rpkhareAuthor Commented:
I don't want to use jqGrid. I am using ASP.NET GridView control and want to add frozen columns to it.
0
 
rpkhareAuthor 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.
0
 
MrunalCommented:
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...
0
 
rpkhareAuthor Commented:
Thanks it worked. I made a mistake while copying code.
0
 
rpkhareAuthor 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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now