Last post Oct 05, 2007 08:58 AM by arvindmewara
Aug 27, 2007 08:15 AM|arvindmewara|LINK
I need to "freeze" the headers for a webforms
gridview using vb.net and sql server 2005.
I have found no documentation or articles that explain how to accomplish this using the
ASP.NET 2.0 ...
Can Any One Help Me......
If Possible Give Me Full Code.
Aug 27, 2007 10:10 AM|millet|LINK
This is not possible "out of the box" with asp.net 2.0. However you can create one table to serve as heading and beneath it add <div style="width=100px; height: 100px; overflow: scroll;"></div> and inside put your gridview.
This is not perfect but is usable. Better approach would be to use repeater instead of gridview to generate table with tablebody, and then set same style to tablebody.
Aug 27, 2007 10:12 AM|Ritesh Manglani|LINK
I was facing the same issue some time back and the following link helped me...
Hope this would be helpful to you as well.
Aug 29, 2007 06:30 AM|arvindmewara|LINK
now its working
Oct 04, 2007 11:16 AM|sbadriprasad|LINK
i am having a gridview inside a panel, when i scroll the div the grid headers should be in the top. The headers should not scroll, the div has both horizontal and vertical scroll bars. the users will scroll both the scroll bars.
Note: i have more number of columns
how can we do this. can any one help me on this.
Oct 05, 2007 08:58 AM|arvindmewara|LINK
i also faced same problem and got a result its not possible.
when we are trying to freeze gridview header its only possible with the use of html table, but the problem is if ur gridview is generated dynamically means some time it have 3 columns and some time more than 3.