Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Someone Has Got to Be Doing This (grid questions)
Message
 
 
À
26/03/2003 15:21:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00770335
Message ID:
00770429
Vues:
10
>>I believe, you don't have to use DynamicCurrentControl for that. You can use AfterRowColChange method and put something like this.readonly = recno()>0
>
>I have not had much success with this method when using the mouse to jump around the grid. I never got the constant result that I was looking for like I did with DynamicCurrrentControl.
>

It was working for me, but in slightly different situation. I just use Form.EditMode to set readonly appropriately. This worked fine, but I don't remember at this moment, if I had that kind of more complicated scenario. May be if you messing with the mouse of the grid, the record number could not be retrieved correctly? Just a speculation, I don't have VFP to test the simplest method right now...

>> However, once you saved, you would not be able to modify even these new added items.
>
>Correct. but part of his posting was "keep the products that already exist for that company readonly" I assume that when you save those items become part of the products that already exist.
>

Right, besides this part could be easily adjusted to allow to modify these newly added records only...
>
>Always more than one way to do something

Right, we just throwing the ideas out, so the originator can come with the good solution.

I used grids for data entry, but it's always problematic...
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform