Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid Position... Help please

Status
Not open for further replies.

KEJinSC

Programmer
Sep 12, 2002
7
US
I need some help with something. I am trying to use a DataGrid to display the contents of an ado recordset. I would like to be able to position to a particular record within the grid programmatically. I don't see a way to do this. In other words, if I have 100 records in my recordset and the grid is scrolled all the way to the bottom so that the 100th record is shown, how can I cause the grid to reposition to the 1st, 50th, or any other particular record so that it can be seen. I don't want the user to have to do anything at all to invoke this. I want to reposition to the beginning after populating the grid and I also want to search through the recordset and show the record that has been found.

Thanks,
Keith Johnson
 
There are several properties at your disposal that may be useful. I would take a look at the following properties for starters:

.Row
.TopRow
.RowIsVisible
Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top