Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling grid cell
Message
De
23/09/1999 03:59:51
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00267849
Message ID:
00267891
Vues:
17
>How do you disable certain cells in a grid without disabling the whole column? Depending upon certain condition, I need for each row/record to have certain column(s) disabled for dataentry.
>
>For example, if I have 5 columns with 2 records/rows, I want to disable column 3 for the first record but disable column 5 in second record. IOW, each record/row can have different columns disabled.
>
>TIA.


IMHO control's when event is the easiest. ie: You want to allow dataentry to a field only if First_name+Last_name are filled :
* When of grid.columns(x).text1
return !empty(nvl(myTable.First_name,"")) and !empty(nvl(myTable.Last_name,""))
This has one disadvantage though. If the column is the last one in grid and not visible, to see its contents (when returned .f. situation) user should either tab+backtab or use hor. scrollbar.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform