Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Re-Stating method after packing grid table
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01173909
Message ID:
01174350
Views:
7
Jeff,

You can use AEVENTS() function to get an object reference to the current event source.

>
>I found the idea of using Bindevents on grid controls very interesting since I have a grid class with code stuffed into each and every column (header and textbox1.)
>
>I'm stumped. I tried working with Bindevent() with grid column headers and the grid column textbox and I cannot get a reference to the actual column with information like controlsource.
>
>For example, if I want to bind to the click event of the header in order to sort the data in the grid by that column I need the controlsource of that column, but if there is no way to get at that column object then it's a no go.
>
>And I've fiddled with the use of code like this:
>
>lo2 = EVALUATE("m.loActiveControl.Columns(m.loActiveControl.ActiveColumn)."; + m.loActiveControl.COLUMNS(m.loActiveControl.ACTIVECOLUMN).CURRENTCONTROL)
>
>but still cannot touch the column object. The active column doesn't activate when clicking a different column header.
>
>It's all very interesting, but I don't think you can avoid putting code into each and every column (header and textbox1) if you need to access the current activecolumn object. At least those are my findings.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform