Click here to Skip to main content
15,888,293 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,
Hope you doing fine.
I've a dot net website in which we are using gridview of fixed size having scrolling capability. We have a button to add new record in gridview. The problem is when I'm adding a new record by clicking add button, new record is added but it is not visible because it does not autoscroll to the last record. So we are not able to know whethere new record is being added or not. Could anyone provide some solution that we can autoscroll it to the end record.

*I dont want to use any Javascript code.

What I have tried:

I've tried using Javascipt but it flickers the page. I dont want use it.
Posted
Comments
[no name] 5-Feb-16 5:22am    
If you don't want to use Javascript then you want it need to implement through server side? If it is server side then it creates performance to your page.
Member 12309007 9-Feb-16 1:34am    
yes it's fine with server side
What JavaScript code you tried?
Member 12309007 9-Feb-16 1:33am    
objDiv.scrollTop = objDiv.scrollHeight;

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