Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to copy control from one grid column to another
Message
From
30/12/1998 05:59:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00171287
Message ID:
00171469
Views:
23
>Ok, I know how to delete a control from a grid column and how to add a new one.
>
>How do I copy a control from one grid column to another? TIA.
Design time and runtime differs but as I learned this is design time. There are a few ways to do it. Choose one you find easy or smart :
1- Code a builder. Base command is aselobj() to get the reference to the control. Then you add to desired columns same object type and set PEM via code. Not easy as it sounds.
2- Save as class your control, and add that new class to desired columns. Smart way but might lead to unnecessary class definitions.
3- Design your new control outside of grid (temporarily on form) and set PEM there (except controlsource), Ctrl+C it, go to grid to edit, select desired columns one by one and paste. Delete temporary form control.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform