Click here to Skip to main content
15,893,190 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There is a requirement, to always display gridview header(that means no need to show the header when the empty data source)

* this scenario comes when we use scroll to move up and down gridview data

Pls reply

Thanks
Posted
Comments
Sandeep Mewara 1-Feb-11 1:55am    
Comment by OP:
Is it possible to put the required code in to CSS class for reusability

Thanks.
Sandeep Mewara 1-Feb-11 1:56am    
So, based on your comment, sounds like you want it in ASP.NET web app and not winforms. Kindly confirm.
kasunt 1-Feb-11 12:01pm    
Its really asp.net web app.

check here[^]
 
Share this answer
 
take a look at given Link1[^] and Link2[^]
 
Share this answer
 
Using CSS, you can freeze the header.

Here you go:
How to Freeze GridView Header While Scrolling ?[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900