Use style sheet only -- put the gridview in a div or a panel that with the container style below. The problem is, it only works for IE. Worst, it may not work correctly in new version of IE. Somehow, it works for most of DataGrid control, as DataGrid is older than GridView.
http://mattberseth.com/blog/2007/09/freezing_gridview_column_heade_1.html
(note: overflow-x or overflow-y are not standard CSS properties. Therefore, MS has their own version of the properties for IE, e.g. -ms-overflow-x:scroll; -ms-overflow-y:scroll)
No comments:
Post a Comment