Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically add Button to Grid
Message
 
To
22/12/2009 13:11:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01440173
Message ID:
01440177
Views:
45
>I have a grid on a form that I need to build from scratch (the columns, etc.) after I run a query and create a cursor. I want to place a Button in the first column so that the user can click the button and "view" the detail of the underlying record.
>
>My problem is that when I reset the grid and add the button, how do I add the code for the click event of the new button which is the current control of column 1?
>
>Thanks.
>
>bob


That is why it is necessary to mention your version of VFP.
In VFP8 or 9 you could use BindEvent function.
In smaller versions you could create your own class based on CommandButton and program all in its Click event.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform