By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,674 Members | 1,478 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,674 IT Pros & Developers. It's quick & easy.

Datagrid Scrolling

P: n/a
In a Forms Datagrid, how do I scroll in code to a row that
is not currently visible, to bring it into view?
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

use the CurrentRowIndex property of the Datagrid.
This will select the row and scroll the grid to show the row.

"Charlie Farrier" <no****@nospam.com> wrote in message
news:0b****************************@phx.gbl...
In a Forms Datagrid, how do I scroll in code to a row that
is not currently visible, to bring it into view?

Nov 20 '05 #2

P: n/a
Thanks.

I now realize the reason it was not working for me was
that the Datagrid was set to ReadOnly. For some reason,
in that state, the DataGrid scrolls to the top after
setting the CurrentRowIndex. The "cursor" of the datagrid
is on the correct record, however.

-----Original Message-----

use the CurrentRowIndex property of the Datagrid.
This will select the row and scroll the grid to show the row.
"Charlie Farrier" <no****@nospam.com> wrote in message
news:0b****************************@phx.gbl...
In a Forms Datagrid, how do I scroll in code to a row that is not currently visible, to bring it into view?

.

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.