Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get MyClass.MyCheckbox into a grid?
Message
From
25/01/2008 17:37:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01285496
Message ID:
01285677
Views:
32
>>>>>>Got a CheckBox in a class library and want to use it instead of the default TextBox that's in one of the columns of my grid. How do I do that? Visually at design time. Thanks!
>>>>>
>>>>>Just make sure your custom CheckBox is in the form controls toolbar, then drop it onto the grid like any other control.
>>>>
>>>>And THEN change the CurrentControl property of the column in the grid.
>>>
>>>
>>>I didn't mention that I always delete the default Textbox in the column first. CurrentControl must then be updated automatically when a custom control is dropped in because I never need to do that manually.
>>
>>What's the use of deleting it? At times one may want to undo the change.
>
>
>It's easy enough to add the original control back if I change my mind. For me it just muddies the water to have two controls in one column.

And if you do, you have to set the currentcontrol explicitly, make sure you set sparse properly and still whenever anything goes wrong you get the Text1 show up. If you eliminate it, it will show up only if the grid rebuilds - which will be a sign that something went south.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform