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.
Unfortunately, activation email could not send to your email. Please try again.

Rows scrolling at run time

Thread ID:





90619 Oct 12,2009 02:34 AM Oct 13,2009 12:27 AM Windows Forms 3
Tags: GridControl
Asked On October 12, 2009 02:34 AM

Hi, everyone

I'd like to know, how can I determine which row will be displayed after event handling. For example, I have 400 px height grid, and 3000 rows inside. After I press a button, I want one of the last row (lets say, indexed 2000) to be scrolled to the second position (in saying scrolled, I mean that the order remains, and the chosen row will jump to the second location). My question is, how to scroll rows inside grid control at run time.

Thanks in advance, and have a nice day :)

Lingaraj S [Syncfusion]
Replied On October 12, 2009 06:50 AM

Hi Allon,

Thank you for your interest in Syncfusion products.

Please try using TopRowIndex property in GridControl to achieve your requirement as shown in below:

// Top row index specify the first row in GridControl
// In this 2000 th row placed in second position in GridControl view
this.gridControl1.TopRowIndex = 1999;

Please let me know if you have any queries.

Lingaraj S.

Replied On October 12, 2009 07:56 AM

Hi, Lingaraj S.

It works very well now.

Thanks a lot and have a nice day :)

Rajadurai C [Syncfusion]
Replied On October 13, 2009 12:27 AM

Hi Allon,

Thanks for your update.



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.

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.