Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rightclick a empty grid
Message
From
09/04/2018 13:19:30
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01659262
Message ID:
01659267
Views:
62
>>I have Grid that fills a Form. My design is that the user will RightClick the grid and get a list of options (add, delete, etc.) But if the Grid is empty, the RightClick (even the grid's) will not fire. The Grid can be empty often. Does anyone have any suggestions?
>>
>>Thanks
>
>Look at grid.GridHitTest method
>*

I finely resolved with a phantom record when empty. When displays it instructs the user to rightclick on that row access the menu. When a new row is added the phantom is removed. When all row are removed, the phantom row appears.
Greg Reichert
Previous
Reply
Map
View

Click here to load this message in the networking platform