Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble writing to a cursor using a grid
Message
De
30/01/2001 11:35:17
Mark Sheehan
Made2Manage Systems, Inc.
Indianapolis, Indiana, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Trouble writing to a cursor using a grid
Divers
Thread ID:
00470113
Message ID:
00470113
Vues:
62
I have a grid on a form. The grid has 4 columns. I want the first two columns to be read-only while I want the user to be able to write changes to the cursor by making changes to columns 3 and 4. Initially, I have the recordsource set to blank " " and the recordsourcetype set to "1 - Alias" to display an empty grid.

A button on the form has a click method that creates a cursor and inserts data into that cursor. I then programmatically set the recordsource of the grid to the cursor, I set the controlsource for each column to the name of the field in the cursor, I set the grid's read-only property to .F. and I set the read-only property of the each column (and its textbox) as described above.

When I run the form, the data is loaded into the cursor properly. Since I have just created the cursor, it is opened exclusively. Any attempt to change any value in any of the four columns on the grid is met with a message on the status bar: "The control is read-only".

What am I missing??
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform