Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement