Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disable grids rows dynamically
Message
 
 
À
29/08/2008 03:13:45
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MySQL
Divers
Thread ID:
01342969
Message ID:
01343062
Vues:
24
When I was facing similar requirements all I had to do was to set all grid's readonly appropriately in AfterRowColChange method.

>Hello Everybody
>
>I have a form with a grid to enter monthly time data for contracts into a cursor.
>
>The cursor has always 31 rows. (= day 1 to 31,1 to 31 marks,1 to 31 starttimes,1 to 31 endtimes ...)
>The cursor is filled with default planning data values for the given month and contract.
>Now i want to do 2 things:
>a:
>Disable (or set to read only) some rows under spezial circumstances.
>(disable row 30 and 31 if month = februar or disable row 1 to 14 if contract starts on 15s day of month)
>The actual month and the contract start date are values of textboxes in my form.(can be part of the cursor if needed)
>
>b:
>disable(or set to read only) a row column for spezial circumstances.
>If field MARK in column2 contais "XYZ" or "YYY" or ... it can't be changed. If MARK has another value it can be changed.
>
>Any help welcomed
>Best regards
>Albert
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