Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DoubleClick on Grid
Message
From
10/06/2008 02:04:20
 
 
To
09/06/2008 20:44:53
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01322710
Message ID:
01322744
Views:
7
>Dear all,
>
>In VFP 6, I can doubleclick on a grid row to have further action. However, I fail to do that at VFP 9. Have I forgetton something to set?
>
>Grid.Colum.Text.DoubleClick()
>Grid.enable=.t.
>Grid.readonly=.t.
Hi,

Still the same in VFP9.
("DoubleClick" instead of "DblClick" is only a typo, right?)

On the other hand, there are several possibilities to prevent code in gridX.ColumnY.Text1.DblClick(), for instance
when there are no records in grid.RecordSource (because of a filter or missing Requery() or so)
or when grid.AllowCellSelection=.F.
or when "Text1" is not the column's CurrentControl
or when you have code only in one of many columns' textbox.DblClick()
or when your code causes "grid reconstruction" by recreating the grid.RecordSource alias at runtime
and so on.



hth
-Stefan
Previous
Reply
Map
View

Click here to load this message in the networking platform