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

Increase Number of Rows

Thread ID:





27181 Apr 7,2005 01:03 PM UTC Apr 7,2005 03:37 PM UTC WinForms 3
Tags: GridControl
Asked On April 7, 2005 01:03 PM UTC

Hi, I have a DataBoundGrid with 40 rows. When the user scrolls down the numbers of rows has to increase. For which i have overrided the onVScroll method of the grid. In which i have added a new row to the datasource and have called refreshRange(lastrow). A similar thing has been done by overriding the onKeyDown and incase of down arrow the number of rows increases. In case of the keydown event the refresh is smooth but incase of Vscroll the grid does not scroll to the new row. Is there any way i can improve the refresh incase of Vscroll without using the Refresh method (this method helps in scolling to the new row but is not as smooth as in when done with the down arrow which only calls the refreshrange method) Regards Vinay

Administrator [Syncfusion]
Replied On April 7, 2005 01:26 PM UTC

Try adding the new rows in the TopRowChanging (or maybe TopRowChanged???) event. You can use the grid.ViewLayout.LastVisibleRow to get the last row displayed, and if it is close to your limit, then add your new rows to the datasource. The TopRowChanged event should be raised whether the user uses the keyboard or the scrollbar to scroll the grid.

Replied On April 7, 2005 03:27 PM UTC

Hi, Thanks for the help. I have been able to increase the rows using the TopRowChnaged Event, but the when using the scrollbar the rows are inserted but the scrollbar does not scroll to the last row. Regards Vinay

Administrator [Syncfusion]
Replied On April 7, 2005 03:37 PM UTC

After inserting new rows, try calling grid.ResetVolatileData followed by grid.UpdateScrollBars. Or, you can try calling grid.Update which will do these calls plus some others as well.


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