We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is it possible to not scroll grid while inserting a new record?

Thread ID:





107921 Mar 22,2013 05:59 PM UTC Apr 3,2013 03:39 AM UTC WinForms 3
Tags: Grouping
Pedro Camilo Amantea
Asked On March 22, 2013 05:59 PM UTC

I have a GGC binded to a Bindinglist<T>.

If I have my vertical scroll somewhere in the middle and a new record is inserted on top of the grid, all records go down, since a new one was inserted. Any way to avoid that?

For example I have 1000 rows. The user is analysing the 500th row (somewhere in the middle) and 300 more rows are added to the top.
That specific row (500th) will not be in view anymore since those 300 were added.

Vinish Kumar K [Syncfusion]
Replied On March 28, 2013 12:20 PM UTC

Hi Pedro Camilo Amantea,


Thank you for your interest in Syncfusion products.

You can achieve the behavior by using the “SetTopRow()” function.

I have used the following code in the sample that you provided and this achieves the desired behavior:


dataSource.Insert(0, new Data(r.ToString(), "Category" + r.ToString(), "Desc" + r.ToString()));

this.gridGroupingControl1.TableControl.SetTopRow(gridGroupingControl1.TableControl.TopRowIndex + 1);



Please refer to the attached sample for more details.




Please let me know if you have any further concerns.




Pedro Camilo Amantea
Replied On April 2, 2013 11:55 AM UTC

that's exactly what I was looking for.
Thank you

Vinish Kumar K [Syncfusion]
Replied On April 3, 2013 03:39 AM UTC

Hi Pedro,

We are glad to know that your issue has been fixed. Please open a new support forum / incident in your Direct-Trac account. if you have any other concerns if you want us to follow up with this issue ,we will be happy to assist you.

Thanks for using Syncfusion Products.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon