Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selected rows in grid to readonly
Message
From
30/03/2004 10:03:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
30/03/2004 00:46:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00890636
Message ID:
00890773
Views:
25
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform