Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selected rows in grid to readonly
Message
De
30/03/2004 10:03:49
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
30/03/2004 00:46:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00890636
Message ID:
00890773
Vues:
24
>hi david,
>
>my table has description, author and date. when user is equal the author, i want the row to be editable.
>
>initially, i want grid to be readonly. i should have a command button that should set all rows equal to author to be editable.
>
>i tried your suggestion, on the when() of each text in my grid, i do
>
>
>if author=nuser
>   this.readonly = .f.
>endif
>
>
>but when i run the form, i see all rows as editable even if author is not equal to user.
>
>i am sure that user is equal the author but it does not set it as editable.
>
>any help?
*Grid.ARCC
LPARAMETERS nColIndex
this.ReadOnly = !(eval(this.recordsource+'.Author') = thisform.nUser)

* OR :

LPARAMETERS nColIndex
this.SetAll('Enabled',eval(this.recordsource+'.Author') = thisform.nUser)
this.columns(nColIndex).Text1.SetFocus()
Cetin

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