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. Image for the cookie policy date

3 questions about Grid control

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

3 Replies

LS Lingaraj S Syncfusion Team 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.


AL Allon 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


LS Lingaraj S Syncfusion Team October 20, 2009 10:09 AM UTC

Hi Allon,

Thanks for the update.

Please let me know if it helps.

Regards,
Lingaraj S.

Loader.
Live Chat Icon For mobile
Up arrow icon