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



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

Post New Answer

More ASP.NET Code Interview Questions

Code for a Simple Way to Write XML in .NET (XmlTextWriter)

1 Answers  


Listview design in .net

1 Answers  


How to get Dynamically Linked Comboboxes Set?

0 Answers   HCL,


How to add checkbox to datagrid?

5 Answers  


how to track links visited in google using iframes

0 Answers  






working with fileUpload ?

1 Answers  


Coding for Synchronizing Cache Access in ASP.NET?

0 Answers  


what is the value that reside in a hidden field when no value is assigned to it?how it can be used in a if statement??

1 Answers  


What do you create for easier access of data?

3 Answers   NIIT,


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

0 Answers  


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

0 Answers  


Code for Sending E-Mail with System.Web.Mail?

2 Answers  


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)