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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active cell in grid setting

Status
Not open for further replies.

bon011

Programmer
Jun 2, 2002
155
CZ
Hi all,

How to set grid???
I mean When user move grid with both srollbars, then he open some other form and then when he get back to grid´s form so he the grid must be look like before.

I tried to use activecell(nRow, nCell) but this function doesnt work as I wont.

Please help.
 
&&&Remember where you are
thisform.grid1.SetFocus
VarActiveRow=thisform.grid1.ActiveRow
VarActiveColumn=thisform.grid1.ActiveColumn

&&&Move Around Randomly
GO 5
KEYBOARD '{ENTER}'
thisform.Refresh

&&Go back to where you were
thisform.grid1.setfocus
thisform.grid1.Columns(VarActiveColumn).setfocus
GO VarActiveRow
thisform.grid1.Refresh

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top