Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many rows are in a grid: visible and total ?
Message
From
04/02/2003 11:02:55
 
 
To
31/01/2003 17:32:27
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00747837
Message ID:
00748887
Views:
20
I use this in my base grid object. Maybe someone else has a better idea. This stores the current record number to a property. Later it is used in the DynamicBackColor of the column to highlight the current row.


* AfterRowColumnChange
LPARAMETERS nColIndex

DODEFAULT(nColIndex)

WITH THIS
IF !EMPTY(.RECORDSOURCE)
.nRecNum = IIF(EOF(.RECORDSOURCE), RECCOUNT(.RECORDSOURCE), RECNO(.RECORDSOURCE))
.REFRESH()
ENDIF
ENDWITH
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform