Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can not add this object to a grid
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01364848
Message ID:
01364850
Views:
20
This message has been marked as a message which has helped to the initial question of the thread.
Just off the top of my head... The BoundTo property should be set to FALSE... Otherwise, when the form gets built, it tries to behind-the-scenes, bind to a data column and there is no such control souce of a command button... I've had to do this with dynamic building of grids and putting all sorts of stuff in a column... including containers with multiple controls too.

>Hi everybody,
>
>I used to do this every time before. I have a grid and I want to add a command button to one of its columns. I already deleted the default control.
>
>Now I'm getting this message "Can not add this object to a grid" no matter how do I try to add the control and which control I try.
>
>I checked with the other grid that already had a checkbox before and I'm getting the same error message too. Could it be related with the fact I set Anchor to the grid class?
>
>Any ideas how to add this button to the column otherwise?
>
>Thanks a lot in advance,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform