>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.