>I want to build my own class based on the grid control.
>I don't know how many columns it will have, but I do know the controls in each column will be textboxes. How can I add events to the textboxes in the class designer mode (click and keypress events)? Because in the designer mode if i leave the columnscount property to -1, so leting the user to set it, i have no other controls in the container. Another way I can put this question. How can I add a code to the methods of the controls that I know will be added at run time!
>
>Hope I could make you understand want I want,
>Please let me know if you have a solution.
In addition to Vlad's reply see FAQ #7967 How do I add event code to Grid Controls built at run-time?
Another popular idea belongs to Nick Nekloudov, what you can cover grid with transparent shape. It was described in FoxPro Advisor, but this article is not available for non-subscribers :( However, you can download the artcile's examples.
If it's not broken, fix it until it is.
My Blog