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

how to upload a photo? i need to use it in a matrimonial applicaton...

1 Answers  


Code for Using Keyboard Events?

0 Answers  


How to send e-mail from an ASP.NET application?

16 Answers   DataPoint, Infosys, Persistent, Radar, TCS, Wipro,


Code for Getting Information About A File?

1 Answers  


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

0 Answers  


Code for Creating a Form Using PlaceHolder Controls?

0 Answers   Arena, JSA,


Listview design in .net

1 Answers  


how can we close a web page in asp.net without using jscript?

4 Answers  


How to get Dynamically Linked Comboboxes Set?

0 Answers   HCL,


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

0 Answers  


Common UI for Multiple web applications. Suppose there are 35 websites using same third party controls.These 3rd party controls are made together that all 35 websites can use these controls.If we put all 3rd party controls and use its dll in 35 websites,only class files will be accessable. But I want to use CSS,images also in all 35 websites. how I can design the N-tier solution for this project.

0 Answers   TCS,


How to Export Data to Excel?

4 Answers   Eastcom Systems,


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)