Give coding for Implementing a Fixed GridView Header in
ASP.NET?
Answer / sujana from fortune digitals
First u need Style Settings
<style type="text/css">
.fixedHeader
{
overflow: auto;
height: 150px;
}
table th
{
border-width: 2px;
border-color: balck;
background-color: darkgray;
position: relative;
top: expression(this.parentNode.parentNode.
parentNode.scrollTop-1);
}
</style>
Second u have to apply these style setting to u gridview
here is the code
<div id="Panel1" class="FixedHeader"
style="border-top-width: thick; overflow-y: scroll;
border-bottom-width: thick; width:
616px; height: 168px">
<table id="Table1" border="1"
cellspacing="0" rules="all" style="border-collapse:
collapse">
///Here U R GridView Design
</table>
</div>
Surely it is working.Iam Right now using it
Is This Answer Correct ? | 8 Yes | 2 No |
how to upload an excel in c# ASP.Net?
Code for Sending E-Mail with System.Web.Mail?
how to upload a photo? i need to use it in a matrimonial applicaton...
How to send e-mail from an ASP.NET application?
16 Answers DataPoint, Infosys, Persistent, Radar, TCS, Wipro,
Coding for .NET Delegates?
how can we close a web page in asp.net without using jscript?
How to Bind Nested XML to a Repeater Control with Container.DataItem?
Code for Presenting Parent/Child Data in a Data Grid Row?
Give coding for Exception Handling Techniques in ASP.NET?
Code for Communicating over Sockets?
Listview design in .net
How we use ajax in asp.net through javaScript. Please givee me an example.