Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rows in Grids
Message
De
02/07/1996 19:42:39
Julio Rivera
Grupo Rivfer, S.A. de C.V.
Tampico, Mexique
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00003306
Message ID:
00003355
Vues:
33
>Does any GE Genius know how to determine how many rows are in a Grid -- not tables but Grid? This GE Genius blew a light bulb...
>
>Tom

I have a form with a pageframe, in page2 a control
grid1 with a filtered control source and a label1 to
display the number of rows.

To get the number of rows in grid1 'with out count
the rows':

in the main form i crate a property nRows, that will
contain the number of rows in the grid.

in the init event of page2:

X = thisform.pageframe1.page2
X.Grid1.SetFocus
go bottom
X.Grid1.refresh()
X.label1.caption = AllTrim(Str(ThisForm.nRows))

in the Grid1's AfterRowColChange event

LPARAMETERS nColIndex
thisform.nRows = this.activerow

i hope this help you...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform