Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug? can anyone confirm/comment?
Message
From
23/07/2000 21:08:36
 
 
To
21/07/2000 16:21:19
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00395695
Message ID:
00396031
Views:
12
>Hi,
>
>create a form class with a 1 column grid
>bind grid and column to a table and field
>in init of the column's textbox put "this.parent.readonly = .T."
>instantiate and show form
>
>here is what I am seeing:
>
>even though the column prop is set to readonly=.t. - the field is editable. Worse - the textbox readonly shows .f. - and even if you programmatically set it to .t., it gets reset to .f. every time it gets focus!!
>
>if you do the exact same thing with a form instead of a form class, it seems to work as expected.
>
>Can anyone verify or comment?
>
>TIA!
>Ken



2 pts to highlight for you:

a) if you see what's New,
http://www.levelextreme.com/wconnect/wc.dll?UniversalThread~?2,33,12,641

You will see the calling should be: ThisForm.Grid1.Column1.Readonly = .T.
by inside grid coding!
Don't argue why, just do it! ;o

b) Just few days ago, at Message #394169
I have post some bugs about grid, all the objects include their coding, properties will be Reset
if you can change the grid.recordsource or another unexpected case is Wrong current work area cause
the grid show wrongly data..

So, try to replace grid child objects by RemoveObject-n-Addobject again to put it right!!



As Barbara said, you're better to change the property of column in the Form Designer, property window..
No coding at all and do what you need!! :)

The Above coding is a Reference for you to take care when handling grid!!

Partly agree it is a bug, but as the textbox inside grid is a Dynamic Object....
The backward pointer handle on parent is poor is acceptable...
That's why you need to make a expression for DynamicForeColor, Dyn.. to handling grid outlook
instead of simple assign the backcolor property!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform