Help me to Freeze Header in Grid View, You can change the Design but Header should be visible |
Help me to Freeze Header in Grid View, You can change the Design but Header should be visible |
Hashan |
Feb 2 2011, 12:02 PM
Post
#1
|
Group: Members Posts: 3 Joined: 2-February 11 Member No.: 13,769 |
You can change the Design but Header should be visible. In my design when am going to enter more rows header not visible so its difficult to identify which column that am entering data while enter large amount of data...
Please help me to overcome this Problem asap....... Download my Source code : http://www.adrive.com/public/0f3250fa9592f...f18227c721.html Or Documents.rar ( 4k ) Number of downloads: 536 |
Darin McGrew |
Feb 2 2011, 12:53 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Here's an example:
http://www.htmlhelp.com/test/tbody.html However, while it works in Firefox, it doesn't work in Chrome, Safari, or Opera. |
Christian J |
Feb 6 2011, 01:06 PM
Post
#3
|
. Group: WDG Moderators Posts: 9,661 Joined: 10-August 06 Member No.: 7 |
Here's an example: http://www.htmlhelp.com/test/tbody.html However, while it works in Firefox, it doesn't work in Chrome, Safari, or Opera. Seems it can be made to work in all of the above if you make THEAD and TBODY "display: block" (and a few more things). MSIE still needs a javascript workaround, though. CODE <style type="text/css" media="screen"> table, th, td {border: solid;} thead { display: block; color: #f00; background: #eee; height: 35px; /* min height for Firefox dummy scrollbar */ overflow-y: scroll; /* not needed for Firefox */ } tbody { display: block; height: 100px; overflow-y: scroll; } th, td { width: 10em; /* makes space for scrollbar, not needed for Firefox */ font-weight: normal; /* prevents cell width mismatch */ } </style> <table> <thead> <tr> <th>foo</th> <th>bar</th> </tr> </thead> <tbody> <tr> <td>foo</td> <td>bar</td> </tr> </tbody> </table> |
Lo-Fi Version | Time is now: 27th April 2024 - 04:57 AM |