Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programming Events within a Grid
Message
From
24/04/1998 12:07:36
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00094583
Message ID:
00094691
Views:
24
Hi David,

I would like the RightClick event to apply to the individual cells in the grid so that Right clicking would display detailed information on the cell. Also would like to go on from there to associate other events with the cells.
I am using a loop (wherever it finally ends up) due to the large number of columns.
Also, is there a way to freeze column one in the grid like in the original browse command?

TIA Ashley



>Ashley,
>
>"Whose" RightClick event do you want to trigger it? You'd be a little better off creating a custom method (like SetupGrid) for the form and moving the code there and just call it from the form.Init() method:
>
>thisform.SetupGrid()
>
>then in the RightClick() you can just call the method again just like above.
>
>>I have a grid on a form that allows me to browse a table which has 216 fields. I set the ControlSource, Header captions within a for..next loop in the form's Init method. I would also like to set within this loop the rightclick event but am having problems with syntax. Any suggestions/examples. Or maybe I'm going about this the wrong way altogether!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform