Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Textbox Readonly Property
Message
De
04/10/1996 11:44:30
Jim Boho
University of Wisconsin
Madison, Californie, États-Unis
 
 
À
03/10/1996 18:00:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00009311
Message ID:
00009394
Vues:
28
>>I have a grid for child table records on a form. The
>>Readonly property for the cursor, grid, columns, and
>>textboxes has been set in the forms designer to .F..
>>The grid Enable property has been set to .F. also. All columns have Sparse set to .F.. When the user clicks on an Edit button, I enable the grid. The problem I am having is that when a grid textbox is clicked on with the mouse, or tabbed to, the Readonly property changes to .T.. Clicking on the Record Marker area affects column 1. Any subsequent attempt to edit a value produces a "The Record is Read-Only." message. I have no code in any method that changes this property. I checked this with the Trace and Debug windows.
>>
>>Has anyone run into a problem like this? I tried looking
>>through Knowledge Base, but I came up empty. The list of
>>known bugs for 3.0b does not have anything on this.
>>
>>Another "feature" of the VFP grid control?
>>
>>TIA
>>
>>Jim
>
>Did you reset ReadOnly property for the whole grid/column. If Yes, then controls will inherit this property. Anyway it's good thing (even for testing) to reset: Control.ReadOnly=.F.

Ed,
In my code, I was only resetting the Enable property for the grid. I did try your idea by resetting ReadOnly to .F. in the GotFocus for the grid textbox. It came up on the Trace window, but as soon as I clicked in the textbox and tried entering data, the GotFocus cleared Trace and ReadOnly went to .T.. I think I will try to build a new grid on the form and see if that will cure the problem.
Thanks for your help.

Jim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform