Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ACTIVATECELL not working
Message
De
18/01/2000 09:06:07
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
ACTIVATECELL not working
Divers
Thread ID:
00319400
Message ID:
00319400
Vues:
45
All,

I am having a problem with the ActivateCell function.

I have two grid on a form and I want to be able to tab from one to the other. When I leave one of the grid and reenter from the top, the active cell is the last cell activated even though I am issuing a This.Grid2.ActivateCell(This.Grid2.RelativeRow,1) command.

Below is the code for my NextGrid function
*NextGrid()
loNextGridList = This.GetNextGridList()

IF ISNULL(loNextGridList)
	RETURN loNextGridList
ENDIF

loNextGrid   = loNextGridList.GridList
liNextColumn = loNextGrid.GetFirstColumn()

loNextGridList.SetFocus()
liRelativeRow = loNextGrid.RelativeRow
loNextGrid.ActivateCell(loNextGrid.ActiveRow,liNextColumn)
This code should move from the last column of the previous grid to the first column of the next grid, but the cell last activated in the next grid is reactivated.

What am I doing wrong?

TIA

Rex
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform