This is a migrated thread and some comments may be shown as answers.

How can I force a row into view?

2 Answers 133 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dave Galligher
Top achievements
Rank 2
Dave Galligher asked on 08 Jun 2011, 08:46 PM
I've got a grid with 53 rows, the real estate on the screen only allows 12 to be viewed, a process runs that finds the desired value in row 37; gridView.CurrentRow property is set to the row in question, but it selects well below what is displayed to the user. How can I force the row into view?  When I scroll down manually the proper row is selected, I'm trying to avoid making the user scroll to see the row selected.

Thank you in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dave Galligher
Top achievements
Rank 2
answered on 08 Jun 2011, 09:01 PM
Never mind... found it: TableElement.ScrollTo(rowIndex, columnIndex) makes it work.
0
erwin
Top achievements
Rank 1
Veteran
answered on 09 Jun 2011, 07:13 AM
Hi Dave,

I usually use the

GridViewRowInfo.EnsureVisible()

function on the row I need to display.

Regards
Erwin
Tags
GridView
Asked by
Dave Galligher
Top achievements
Rank 2
Answers by
Dave Galligher
Top achievements
Rank 2
erwin
Top achievements
Rank 1
Veteran
Share this question
or