Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4537244
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:38:54+00:00 2026-05-21T14:38:54+00:00

whenever new row is added then already existing row will be slowly move downword

  • 0

whenever new row is added then already existing row will be slowly move downword and new one will be added in the grid view control.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T14:38:55+00:00Added an answer on May 21, 2026 at 2:38 pm

    Check out the jQuery.ScrollTo plugin it works great for scrolling the screen slowly.
    Have some control below your grid it can be an existing control or you could add an anchor tag like

    After you add your row you would add the script $.scrollTo(‘#grid_bottom’) using ScriptManager.RegisterStartupScript or ClientScript.RegisterStartupScript (use the script manager one of you are using an update panel) and it should scroll down slowly.

    Link to download page for jQuery ScrollTo Plugin

    Here is some example code, you can change the duration in the ScrollTo function or leave it off, and the scroll will happen immediately without smoothly scrolling:

    <%@ Page Language="C#"  %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <script runat="server">
    
        public List<KeyValuePair<string, string>> Items
        {
            get { return (List<KeyValuePair<string, string>>)ViewState["Items"]; }
            set { ViewState["Items"] = value; }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Items = new List<KeyValuePair<string, string>>();
    
                for (int i = 0; i < 200; i++)
                    Items.Add(new KeyValuePair<string, string>(i.ToString(), "Test" + i));
    
                GridTest.DataSource = Items;
                GridTest.DataBind();
    
            }
        }
    
    
    
        protected void cmdAddNew_Click(object sender, EventArgs e)
        {
            Items.Add(new KeyValuePair<string, string>("", DateTime.Now.ToString()));
    
            GridTest.DataSource = Items;
            GridTest.DataBind();
            ScriptManager.RegisterStartupScript(this, GetType(), "scrollto",
                    string.Format(
                        @" $(document).ready(function(){{
                            $.scrollTo($('#{0}'), 2000);
                    }});", cmdAddNew.ClientID), true);
    
        }
    </script>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager runat="server" ID="ScriptManager1">
            <Scripts>
                <asp:ScriptReference Path="http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.4.min.js" />
                <asp:ScriptReference Path="/JavaScript/jquery.scrollTo-min.js" />
            </Scripts>
        </asp:ScriptManager>
        <asp:UpdatePanel ID="pnlTest">
            <ContentTemplate>
                <asp:LinkButton ID="cmdAddNew2" runat="server" OnClick="cmdAddNew_Click">Add New</asp:LinkButton>
                <asp:GridView ID="GridTest" runat="server" AutoGenerateColumns="false">
                    <Columns>
                        <asp:BoundField DataField="Value" />
                    </Columns>
                </asp:GridView>
                <asp:LinkButton ID="cmdAddNew" runat="server" OnClick="cmdAddNew_Click">Add New</asp:LinkButton>
            </ContentTemplate>
        </asp:UpdatePanel>
        </form>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using web service asmx, whenever a new request comes, all objects will
whenever I add a new domain into my new Plesk control panel on my
I am making a dynamic table that will add rows whenever the add row
I'm trying to implement OpenId login for a web application. Whenever new user who
Hello I have a user model and a ratings model. Whenever a new user
I've heard that you should usually delete whenever you use new, yet when I
Whenever I make a new file in xcode, it puts something like this at
Whenever I learn a new language/framework, I always make a content management system... I'm
Whenever I create a new project in the Visual Studio 2010 Release Candidate, for
Whenever I write a new class and add some internal fields, I use an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.