Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pick up double click in cell of grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01491984
Message ID:
01491998
Views:
57
>>>I have grid that has several fields, when Edit mode is turn on,
>>>
>>>I want the user to be able to double click a cell in the grid, this will load the relevant form, but I dot want the user to be able to type anything directly into the field even when edit is on
>>>
>>>Any ideas?
>>>
>>>TAI
>>
>>The simplest way will be to set AllowCellSelection property to false and code in the DblClick event of the grid.
>
>That wouldn't be a Cell DblClick.
>That will be Row DblClick.

Right, but if you don't want to change data in the cell, then, IMHO, using AllowCellSelection = .f. is the easy choice.
Alternatively you can bind cell's double click to grid's method. I have such grid class published in my blog.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform