2

I know this topic has been asked, but the posts are all out of date, or not functional on IE8.

In brief we basically want to do the excel style locking of column headers in a GridView.

I have seen a couple of solutions one jquery+ css(setExpression) which doesn't work in IE8. And another that uses ajax extensions, yet again doesn't work in IE8.

I have been through every solution in the below link and have yet to find a working implementation for IE8.

GridView : How to make fixed Header Row

I see telerik has an implementation that is more thank what i want, this is such a simple concept I can believe i am going to have to buy a toolkit...

Community
  • 1
  • 1
Nix
  • 57,072
  • 29
  • 149
  • 198
  • @Nix do you like a jQuery solution that use Javascript ? – Aristos Jun 07 '10 at 06:45
  • @Nix perhaps I am missing something here, but does not the GridView render on the browser as an html table? (thus I am puzzled as to why you resist information on table layouts) Am I missing something here? – Mark Schultheiss Jun 07 '10 at 13:47
  • Right but i am not coding the tables. I am letting server generate them, maybe I** am missing something? but the solutions you sent me dont work when you are letting asp generate tables. – Nix Jun 07 '10 at 14:04
  • Take a look at this scrollable table for some ideas: http://www.webtoolkit.info/scrollable-html-table.html – Mark Schultheiss Jun 07 '10 at 21:40
  • sorry @Mark code for webtoolkit.scrollabletable.js doesn't work with IE8 because set expression. – Nix Jun 08 '10 at 12:19
  • I am using IE8, albeit in compatibility mode due to other reasons, and it seems to work, just an FYI. (I have no interest in that site btw, just trying to help :) – Mark Schultheiss Jun 08 '10 at 12:30
  • So you are saying you are using a GridView, and the solution that leverages the webtookit? and it works? – Nix Jul 01 '10 at 18:46

2 Answers2

2

This is a solution that its working on ie8 - at least on my ie8.

Here are some demos: http://fixedheadertable.com/livedemos/

And here is one more with source code http://www.dotnetcurry.com/ShowArticle.aspx?ID=255

And one more (good idea) http://datawebcontrols.com/demos/ScrollableDataGridFixedHeader.aspx

Aristos
  • 66,005
  • 16
  • 114
  • 150
  • " FixedHeaderTable.com" is using html tables not asp GridViews, and i have tried dotnetcurry and it did not work. Looking at the last now. – Nix Jun 06 '10 at 14:49
  • 3
    Why are you dead set on using a gridview instead of an html table? I would think you'd want to go with the web standard... – Matrym Jun 07 '10 at 06:41
  • 2
    I am using ASP.NET there is no reason to use Tables. – Nix Jun 07 '10 at 13:03
  • @Matrym You comment suggest that he reinvent the wheel. That is not logical nor helpful. – Matthew Cox Mar 11 '11 at 18:09
0

After searching the depths of the internet, the only* implementation that I found is by IdeaSparks. It provides an opensource custom GridView implementation that allows:

  1. Display fix column headers, footer and pager
  2. Supports scrollable content
  3. User-resizeable column widths (New!)
  4. Maintains scroll position and column widths after a postback or callback (New!)

My only complaint is that it requires you to use fixed columns...

Nix
  • 57,072
  • 29
  • 149
  • 198