IE8 Fixed Header, scrollable GridView

2020-04-17 07:06发布

问题:

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

回答1:

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



回答2:

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