Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Testing for header click in a grid
Message
 
 
To
29/07/2003 09:39:48
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00814471
Message ID:
00814528
Views:
11
Put this in the GRID INIT:
LOCAL loColumn, loControl
FOR EACH loColumn IN THIS.Columns
   FOR EACH loControl IN loColumn.Controls
      IF UPPER(loControl.BaseClass) = [HEADER]
         BINDEVENT(loControl, 'Click', THIS, 'OnHeaderClick')
      ENDIF
   ENDFOR
ENDFOR
Now just add a OnHeaderClick method to your grid class.

The point here is bind the click event of the header to some method in your grid or form, then put your code in that grid or form method.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform