Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make a single row in a grid to be editable
Message
De
12/05/1999 15:16:35
Bruno Di Lalla
Bdl Computer Consulting
Greely, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00217323
Message ID:
00218016
Vues:
22
>>Hello Alaster,
>>
>>I had to solve this for one of my apps and here's how I do it...
>>
>>In the AfterRowColChange Event of the grid, determine if the row you are on should be editable or not.
>>
>>If it shouldn't be editable do the following for every column in the grid:
>>this.ColumnName.Text1.Enabled=.F.
>>
>>If it should be editable do the following for every column in the grid:
>>this.ColumnName.Text1.Enabled=.T.
>>
>>'ColumnName' is the name of columns in your grid
>>'Text1' is the name of the default textbox object found in every column. If you have another object in a column, for example a checkbox, then replace 'Text1' with the name of that object.
>
>So how does the user know what's editable, by trial and error?

You're right, the user would only know by trial and error. However, in my case, each row is joined to data which appears in another grid. When there is no data in the second grid, the row in the top grid is editable, otherwise it isn't.

I guess it realy depends on what data is to be displayed in the grid and if its content intuitively indicate which row is editable.
Bruno Di Lalla
Consultant
BDL Computer Consulting
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform