Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rows in Grids
Message
From
02/07/1996 19:42:39
Julio Rivera
Grupo Rivfer, S.A. de C.V.
Tampico, Mexico
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00003306
Message ID:
00003355
Views:
28
>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
Map
View

Click here to load this message in the networking platform