Skip to content Skip to sidebar Skip to footer

How To Align Fixed Grid View Header With My Codes?

I have a problem here which after applying fixed grid view header it does not align with my grid view data. Before the I code it to fixed the header, the grid view columns align we

Solution 1:

Long time ago I struggled also with fixed headers on grid views. After various efforts I switched finally to a client side solution using JQuery and the StickyTableHeaders-Plugin. It works very good.

After embedding JQuery and the plugin, you just need to create the plain table server side and the plugin does the rest with a single JS line:

$("#tableId").stickyTableHeaders();

Various options are available.

Live Demo Fiddle

Solution 2:

Problem solved with reference to:

http://www.dotnetbull.com/2011/11/scrollable-gridview-with-fixed-headers.html

Post a Comment for "How To Align Fixed Grid View Header With My Codes?"