Sometimes we need to mainted the size of the datagrid to one page this can be done using paging. But paging occurs with the postback which is not good as performance point of view. I am pretty sure that you can also do paging using client side code.
Anyway here is another way which solves the problem by introducing scroll bars to the datagrid control. Here is a simple code that you can use in the division tag to introduce the scroll bars.
Check out this link:
http://geekswithblogs.net/aferrandiz/archive/2004/08/09/9498.aspx
Here is another link that tells that how you can maintain the scroll position in the datagrid scroll bar. This only works for the Internet Explorer Browser:
http://authors.aspalliance.com/JimRoss/Articles/MaintainScrollPos.aspx
In order to maintain the position for most of the browsers you can use the "SmartScroller" control. Check out this link http://www.dotnet-news.com/lien.aspx?ID=8622
No comments:
Post a Comment