Give coding for Implementing a Fixed GridView Header in
ASP.NET?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Code for Creating a Form Using PlaceHolder Controls?

2356


How to Bind Nested XML to a Repeater Control with Container.DataItem?

3223


Code for Using Keyboard Events?

2136


How to use Client-side Script to Focus Controls in ASP.NET?

2366


how to create a search bar which access data from various websites and retrieves the data

2557






Code for Presenting Parent/Child Data in a Data Grid Row?

2116


ArrayList declaration in .net

2753


Code for Communicating over Sockets?

1953


How to get Dynamically Linked Comboboxes Set?

2032


What is the code of Password Recovery or Forget your password? Plz tell in c # language.

3575


Code for Document Validation in XML.NET?

1989


i have a gird with columns all are coming from database,this will bind in item templete in gridview as textboxex.and i have button below named Update.i want to update all the records in the grid,but if user change the value of one textbox,what is the easy way 2 do this

2147


how to track links visited in google using iframes

2287


Coding for Synchronizing Cache Access in ASP.NET?

3126


How we use ajax in asp.net through javaScript. Please givee me an example.

2508