Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many rows in a grid control ?
Message
From
18/12/2002 13:15:25
 
 
To
18/12/2002 11:43:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00734133
Message ID:
00734182
Views:
22
Hi Roland.

How to get programaticaly the number of rows displayed in a grid control ?


If you are talking about the number of rows in the entire grid, RECCOUNT( This.RecordSOurce ) will do that for you. If you are talking about the number of rows in the visible portion of the grid, try this:
*** Calculate the maximum number of rows per grid page
lnMaxRows = INT( ( .Height - .HeaderHeight - ;
		  IIF( INLIST( .ScrollBars, 1, 3 ), SYSMETRIC( 8 ), 0 ) ) / .RowHeight )
Previous
Reply
Map
View

Click here to load this message in the networking platform