Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coding an Event for a TextBox in a Grid Programmatically
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00696764
Message ID:
00696816
Views:
15
You need to remove the "normal" textbox and replace it with your own class textbox. In this class Click method you would have something like:
if type('this.parent.parent.name')='C' and lower(this.parent.baseclass) = 'column'
   this.parent.parent.Click(this) && Assuming your grid class has parameters in Click method
endif
See FAQ by Mike Helland about adding controls in Grid on the fly.

>Hi,
>
>I have a grid on a form that I am having to set the properties for on the fly.
>
>Is there a way to pass the double click event programmatically.
>
>I have tried the following syntax:
>
>FormName.PageFrame.PageNumber.GridName.ColumnName.TextBoxName.DblClick = 'ThisForm.DisplayName'
>
>
>Any suggestions would be greatly appreciated.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform