>>I have a grid class that is used for many different tables, so I build it "on the fly". I set the ColumnCount to the number of fields and loop through the columns to change the controls to my own textbox class instead of the VFP baseclass. The problem is, when I display the grid I don't see the text of the cell that has focus. If I leave the controls as the baseclass, it works fine. I set all the properties in my textbox class to match the baseclass but it still doesn't work. And when I RightClick on my textbox, it doesn't execute the code in my class. It's as if the textbox isn't there. Any suggestions?
>>
>>Thanks,
>>Elyse
>
>Whenever an object is added programmatically, it's Visible property is .F.
>Set it to .T. after adding it - and make sure the Column.Sparse = .F. and the Column.CurrentControl = "MyTextbox"
That was it! Of course I usually set the Visisble property to .T., but I forgot here. And since the data was showing up in all the other cells, I didn't realize that was the problem. Thanks!
Elyse Pomerantz