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 |
Code for Document Validation in XML.NET?
Coding for Synchronizing Cache Access in ASP.NET?
How we implement the paypal in my website and how we make a payment through Credit Card.
Code for Creating a Form Using PlaceHolder Controls?
what is software testing
How to add checkbox to datagrid?
How to get the row index on checking a Checkbox in a ListView
How to integrate the regional language in asp.net and c# like Telugu, Hindi etc,. send a sample program
3 Answers Concept, NIIT, Wipro,
Code for Communicating over Sockets?
how the value of label is printed through a button in asp.net web application
Coding for .NET Delegates?
How to use Client-side Script to Focus Controls in ASP.NET?