Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids on the fly.......
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00026214
Message ID:
00026253
Views:
27
>I have a grid class whose .ColumnCount property starts as the default -1. The columns are built on the fly by using afields() and creating them. I need to be able to access the .Click methods of the subsequent headers and text boxes that are created. How can I create code that will execute when a user clicks a header, a textbox and get it inserted into a grid on the fly?

Don't think you can do this with columncount set to -1 as the grid has no "children columns" refernceable in this state. Why don't you put in some code to increase the column count, define it as you want etc when adding a new field. You could even put this in the grid refresh method.
Todd Burstain, MD
infinitydoc@delphi.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform