General information
Category:
Coding, syntax & commands
>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...
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only