Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Testing for header click in a grid
Message
From
29/07/2003 12:12:38
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00814471
Message ID:
00814572
Views:
8
>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.

Got the idea. Didn't know about the BindEvend() function. Did what you said it it worked (put "Procedure grdTestGrid.Init" and "Procedure OnHeaderClick" in the from definition).

>Now just add a OnHeaderClick method to your grid class.

Let me, please, ask you how to get the name of the column (or header) that when clicked fired the OnHeaderClick method?
 Procedure OnHeaderClick
*          -------------
           Messagebox ("The Header or Column clicked is...")
 EndProc
Thanks,

Fernando
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform