Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Building a grid
Message
From
07/09/2000 12:17:00
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
 
 
To
07/09/2000 12:04:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00413599
Message ID:
00413618
Views:
14
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform