iebidan Posted April 26, 2004 Posted April 26, 2004 Maybe someone had this problem before and solved it, so now I need your help to solve it I've an ASPX page with a datagrid, when the page loads, the datagrid can contain up to 25 items, when this happens, the page is large and you need to scroll down to see the whole datagrid. When you select an item in the datagrid at the bottom of the page it makes a Postback, but when it reloads puts the user in the top of the page, how can avoid this?? if I select an item, make the postback and keep me in the position where the selected item is??? Thanks in advance Quote Fat kids are harder to kidnap
tonyf Posted April 26, 2004 Posted April 26, 2004 Set SmartNavigation in the document properties to True Quote Everything is possible!!
iebidan Posted April 26, 2004 Author Posted April 26, 2004 it worked!!!!! Thanks tonyf!!!!!!! Quote Fat kids are harder to kidnap
Arch4ngel Posted April 26, 2004 Posted April 26, 2004 Yeah... really bright. What if I use Mozilla or other browser that doesn't support it ? The best used method... is to set a DataView that is sorted (however you want) and to set it to the DataSource of your grid. I use it alot and it always display my element in the proper order (even If I add some). Personnally... I try to keep off "one-kind-of-browser-function". As they limit the choice of my users. Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Moderators Robby Posted April 26, 2004 Moderators Posted April 26, 2004 Arch, you cannot re-sort if the user selects an item in the grid far down the page. SmartNav is the choice in this case. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.