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.
Syncfusion Feedback

3 questions about Grid control

Thread ID:

Created:

Updated:

Platform:

Replies:

90786 Oct 18,2009 08:23 AM UTC Oct 20,2009 10:09 AM UTC Windows Forms 3
loading
Tags: GridControl
Allon
Asked On October 18, 2009 08:23 AM UTC

Hi, everyone

I have few questions:

1. How can I know the number of current visible rows? (rows that the user can see now without scrolling)
2. How can I know if a specific row is visible now (without scrolling)?
3. How can I perform something like PageDown in Grid Control?

If anybody has the answer of even one of the questions above, please write it down, and send it back to the forum.

Thanks in advance, and have a nice day :)
Allon

Lingaraj S [Syncfusion]
Replied On October 19, 2009 01:20 PM UTC

Hi Allon,

Thank you for your interest in Syncfusion products.

1. The VisibleRows property contains visible rows count in GridControl.

Console.WriteLine(this.gridControl1.ViewLayout.VisibleRows);


2. The VisibleRowsList property contains visible rows collection.

if (this.gridControl1.ViewLayout.VisibleRowsList.Contains(4))
Console.WriteLine("4 th row contains in visible range");


3. By default, GridControl is supporting for page up and page down functions. If you want to scroll a rows through code, then please try using ScrollCellInView method in GridControl to achieve your requirements.

this.gridControl1.ScrollCellInView(GridRangeInfo.Rows(100,115));


Please let me know if you have any queries.

Regards,
Lingaraj S.

Allon
Replied On October 20, 2009 07:58 AM UTC

Lingaraj S., Thanks for replying me so quickly.

Everything works very well, and the answer of q.3 is the combination of answer 1 and answer 3.

Have a nice day :)
Allon

Lingaraj S [Syncfusion]
Replied On October 20, 2009 10:09 AM UTC

Hi Allon,

Thanks for the update.

Please let me know if it helps.

Regards,
Lingaraj S.

CONFIRMATION

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.

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

;